Proper Grammar ?
|
10-31-2018, 06:23 AM
Post: #1
|
|||
|
|||
Proper Grammar ?
Is this really a proper grammar LL
with Left associavity ? ///////////////////////////////////////////////////////// Grammar 3b ....................................... expr → term { ( “+” | “-” ) term } term → factor { ( “*” | “/” ) factor } factor → ID | NUMLIT | “(” expr “)” ....................................... Grammar 3b is what we want. It is LL, and we can use it to parse left-associative binary operators. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: