Interface Reading.OperatorFactory<D,T,A>

Type Parameters:
D - the type of document identifiers
T - the type of token types
A - the type of parsing results
Enclosing class:
Reading<D,T,A>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Reading.OperatorFactory<D,T,A>
Function for constructing binary AST nodes for operators.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Location<D> location, A left, T op, A right)
    Construct a binary AST node for an operator.
  • Method Details

    • apply

      A apply(Location<D> location, A left, T op, A right)
      Construct a binary AST node for an operator.
      Parameters:
      location - the source location of the operator use
      left - the left operand
      op - the token type of the operand
      right - the right operand
      Returns:
      an AST node for the application of the operator to the operands