ANTLR Operator precedence grammar
This is snipper of my ANTLR grammar for parsing expressions with operator precedence, By default the expressions are evaluated left to right which in some cases may produce undesired results, in order to fix that use of left and right parenthesis is required. For example this two expressions will be evaluated differently 3 > 2 …