Skip to content

Instantly share code, notes, and snippets.

@anfedorov
Created July 17, 2009 22:47
Show Gist options
  • Save anfedorov/149324 to your computer and use it in GitHub Desktop.
Save anfedorov/149324 to your computer and use it in GitHub Desktop.
Grammar:
Var -> x | y | z
Exp -> Var | AEx | MEx
MEx -> Exp (*|/) Exp
AEx -> Exp (+|-) Exp
Parsing:
x / y + z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment