Post Reply 
Social Buttons
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: