OILS
/
mycpp
/
examples
/ arith.pgen2
View on Github
|
oilshell.org
3 lines, 2 significant
1
arith_expr: term ((
'+'
|
'-'
) term)* Eof_Real
2
# Oil patch: removed '@' and // -> div, % -> mod
3
term: Expr_DecInt ((
'*'
|
'/'
|
'mod'
|
'div'
) Expr_DecInt)*