grammar foo_db { rule key { <[A-Z]> } rule scalar { <[^,]>+ } rule list { [ ,]+ } rule term { = [ | ] } rule record { [ <[|]>]* } }