summaryrefslogtreecommitdiff
path: root/grammar-ll1.txt
AgeCommit message (Collapse)AuthorFilesLines
2016-05-07Attempt to convert grammar to LL(1)Peter Wu1-11/+8
Needs more verification, but the idea is that the expressions with lowest precedence (+) should be the first one in the parse tree (implying that non-terminals with highest precedence should be just above a terminal). Left-associativity is achieved by the trick in section 2.3.1 of Intro2CD which results in the left operand being recursed instead of the right one.
2016-05-07Initialize LL(1) grammar from current grammarPeter Wu1-0/+41