-
Notifications
You must be signed in to change notification settings - Fork 0
BNF
Sohei Yamaga edited this page Sep 27, 2017
·
9 revisions
<expr> ::= <define>
<define> ::= <string> {<string>} ':=' <term>
<term> ::= <term> '+' <term>
| <term> '-' <term>
| <term'>
<term'> ::= <term'> '*' <term'>
| <term'> '/' <term'>
| <term''>
<term''> ::= '(' <term> ')'
| <label>
| <call>
<call> ::= <label> '(' <args> ')'
<args> ::= <term> ',' <args> | <term>
<label> ::= <label><anychar> | <anychar>