jfun.parsec
public final class Expressions extends Object
Method Summary | |
---|---|
static <E,T extends E> Parser<E> | buildExpressionParser(Parser<T> term, OperatorTable<E> table)
Creates a Parser object based on information described by OperatorTable. |
static <E,T extends E> Parser<E> | buildExpressionParser(String name, Parser<T> term, OperatorTable<E> table)
Creates a Parser object based on information described by OperatorTable. |
Parameters: term parser for the terminals. table the operator table.
Returns: the expression parser.
Parameters: name the name of the parser. term parser for the terminals. table the operator table.
Returns: the expression parser.