isLeftRecursive indicates whether the parser resolves the call in a left-recursive manner as this can have an effect of how parentheses affect the order of operations in the AST.
(op string)
| 730 | // isLeftRecursive indicates whether the parser resolves the call in a left-recursive manner as |
| 731 | // this can have an effect of how parentheses affect the order of operations in the AST. |
| 732 | func isLeftRecursive(op string) bool { |
| 733 | return op != operators.LogicalAnd && op != operators.LogicalOr |
| 734 | } |
| 735 | |
| 736 | // isSamePrecedence indicates whether the precedence of the input operator is the same as the |
| 737 | // precedence of the (possible) operation represented in the input Expr. |