View on GitHub

Bearded-android-docs

ContextFreeGrammar

Download this project as a .zip file Download this project as a tar.gz file

Created Tuesday 17 September 2013

Ex (* has higher precedance than +):

exp: exp + term | term
term: term * num | num

Ex: (+ is left associative)
exp: num | exp + num

Ex: (^ is right associative)
exp: num | num ^ exp

Links


No backlinks to this page.
comments powered by Disqus