Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <expr> = <term> { <second_op> <term> }
- <term> = <factor> { (<prior_op> <factor> }
- <factor> = ['!' | '+' | '-'] <value> [<as_kw> <type>] // Here i must use another nonterminal to support conversion to other types and +- before expr, and the '!' operator for inversions.
- <value> = <callable>
- = <const>
- = '(' <expr> ')'
- <callable> = <id>
- = <f_call>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement