Skip to content
Sohei Yamaga edited this page Sep 27, 2017 · 9 revisions

BNF: tmpla

<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>
Clone this wiki locally