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>&lt;Adverb&gt;</tt>, <tt>&lt;Verb&gt;</tt>, and <tt>&lt;Noun&gt;</tt> can be further defined (with minor variations between dialects) as:
Further, <tt>&lt;Adverb&gt;</tt> <tt>&lt;Verb&gt;</tt> <tt>&lt;Noun&gt;</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 - no knowledge about the runtime values of variables is required to build a parse tree.
K can be parsed statically - knowledge about the runtime values of variables is not required to build a parse tree.