kaby76 / Trash

Toolkit for grammars
MIT License
76 stars 5 forks source link

ll(k) to ll(1) #200

Open kaby76 opened 2 years ago

kaby76 commented 2 years ago

https://stackoverflow.com/questions/74304958/are-there-any-ll1-grammar-converting-tools-for-antlr4

https://link.springer.com/chapter/10.1007/978-3-030-50026-9_24

kaby76 commented 2 years ago
e : t ep ; ep : ( '+' | '-' ) t ep | ; t : f tp ; tp : ( '*' | '/' ) f tp | ; f : p fp ; fp : '^' p fp ;p : NUM | '(' e ')' | ('-'|'+') t;. 

https://stackoverflow.com/questions/74358293/needs-corrections-in-writing-a-ll1-math-expression-parser