antlr ebnf code example
Example: antlr ebnf
// EBNF Example
exp: exp (TIMES|DIV) exp //TIMES and DIV are equally important
|exp (PLUS|MINUS) exp //PLUS and MINUS are equally important
|NUM
|LPAR exp RPAR;
// EBNF Example
exp: exp (TIMES|DIV) exp //TIMES and DIV are equally important
|exp (PLUS|MINUS) exp //PLUS and MINUS are equally important
|NUM
|LPAR exp RPAR;