OILS / mycpp / examples / arith.pgen2 View on Github | oilshell.org

3 lines, 2 significant
1arith_expr: term (('+'|'-') term)* Eof_Real
2# Oil patch: removed '@' and // -> div, % -> mod
3term: Expr_DecInt (('*'|'/'|'mod'|'div') Expr_DecInt)*