Package com.gengoai.parsing
Interface PostfixHandler
-
- All Superinterfaces:
Serializable
- 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 interface PostfixHandler extends Serializable
Handler for postfix and infix expressions.- Author:
- David B. Bracewell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Expression
handle(Parser parser, ParserToken token, Expression left)
Handles the given postfix (or infix) token using the given parser
-
-
-
Method Detail
-
handle
Expression handle(Parser parser, ParserToken token, Expression left) throws ParseException
Handles the given postfix (or infix) token using the given parser- Parameters:
parser
- the parser to usetoken
- the token representing the prefix operatorleft
- the expression on the left-hand side of the operator- Returns:
- the expression resulting the handler
- Throws:
ParseException
- Something went wrong parsing the expression.
-
-