package alba
Module Alba_core.OperatorSource
of_string op computes the precedence information of the operator op given as a string. for unknow operators the highest precedence below function application and left associativity is returned.
needs_parens lower is_left upper decides if the lower operand lower used as a left or right operand (indicated by the flag is_left) for upper needs parentheses.
is_left_leaning op1 op2
a op1 b op2 c has to be parsed as (a op1 b) op2 c
is_right_leaning op1 op2
a op1 b op2 c has to be parsed as a op1 (b op2 c)