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