|
|
|
|
|
by seanmcdirmid
4903 days ago
|
|
Ya, grammar only describes the syntax of a language. You still have the semantics and pragmatics to consider! I'm not even sure if a XBNF is the best way to describe or reason about language syntax. Precedence grammars (with hacks to handle braces) are quite interesting for robust error tolerant parsing, and might more closely mirror how we internal grammars in our head. |
|