public class Parser extends Object implements ParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
Token |
token |
ParserTokenManager |
token_source |
DEFAULT, EOF, FUN, NUM, tokenImage, VAR
Constructor and Description |
---|
Parser(InputStream stream) |
Parser(ParserTokenManager tm) |
Parser(Reader stream) |
Parser(Reader stream,
ExpressionFactory factory) |
Modifier and Type | Method and Description |
---|---|
Expression |
addition()
Means one or more possible sub-expressions with the lowest priority.
|
Expression |
atom()
All Symbols and embraced Expressions.
|
void |
disable_tracing() |
void |
enable_tracing() |
Expression |
expression() |
ParseException |
generateParseException() |
Token |
getNextToken() |
Token |
getToken(int index) |
List |
list() |
Expression |
multiplication()
Also includes implicit multiplication and function calls.
|
Expression |
parse() |
static Expression |
parse(String exprString,
ExpressionFactory expFact) |
Expression |
power() |
void |
ReInit(InputStream stream) |
void |
ReInit(ParserTokenManager tm) |
void |
ReInit(Reader stream) |
public Token jj_nt
public Token token
public ParserTokenManager token_source
public Parser(InputStream stream)
public Parser(ParserTokenManager tm)
public Parser(Reader stream)
public Parser(Reader stream, ExpressionFactory factory)
public final Expression addition() throws ParseException
ParseException
public final Expression atom() throws ParseException
ParseException
public final void disable_tracing()
public final void enable_tracing()
public final Expression expression() throws ParseException
ParseException
public ParseException generateParseException()
public final Token getNextToken()
public final Token getToken(int index)
public final List list() throws ParseException
ParseException
public final Expression multiplication() throws ParseException
ParseException
public final Expression parse() throws ParseException
ParseException
public static Expression parse(String exprString, ExpressionFactory expFact)
public final Expression power() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(ParserTokenManager tm)
public void ReInit(Reader stream)