precedence property

Precedence get precedence

Return the precedence of this expression.

The precedence is a positive integer value that defines how the source code is parsed into an AST. For example a * b + c is parsed as `(a * b)

  • cbecause the precedence of*is greater than the precedence of+`.

Implementation

Precedence get precedence;