Grammar: Difference between revisions
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
<noun> ::= <term> "[" <Exprs> "]" | "(" <Exprs> ")" | "{" <Exprs> "}" | <Noun> |
<noun> ::= <term> "[" <Exprs> "]" | "(" <Exprs> ")" | "{" <Exprs> "}" | <Noun> |
||
<tt><Adverb></tt> |
Further, <tt><Adverb></tt> <tt><Verb></tt> <tt><Noun></tt> can be defined, with minor variations between dialects, as: |
||
<Adverb> ::= "'" | "/" | "\" | "':" | "/:" | "\:" |
<Adverb> ::= "'" | "/" | "\" | "':" | "/:" | "\:" |
||
Line 35: | Line 35: | ||
<Letter> ::= "A" | .. | "Z" | "a" | .. | "z" |
<Letter> ::= "A" | .. | "Z" | "a" | .. | "z" |
||
K can be parsed statically - |
K can be parsed statically - knowledge about the runtime values of variables is not required to build a parse tree. |