public class EquationParser extends java.lang.Object implements EquationParserConstants
Modifier and Type | Field and Description |
---|---|
static Token |
jj_nt
Next token.
|
static Token |
token
Current token.
|
static EquationParserTokenManager |
token_source
Generated Token Manager.
|
ADD, AND, CHARACTERS, CLOSEBRACKET, CLOSEPARENTHESIS, COMMA, COMMENT, DEFAULT, DIGITS, DIV, EOF, EQ, GE, GT, IDENTIFIER, LE, LT, MOD, MULT, NEQ, NOT, OPENBRACKET, OPENCURLY, OPENPARENTHESIS, OR, SUB, TEXT, tokenImage, VALUE, XOR
Constructor and Description |
---|
EquationParser(EquationParserTokenManager tm)
Constructor with generated Token Manager.
|
EquationParser(java.io.InputStream stream)
Constructor with InputStream.
|
EquationParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
EquationParser(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
block() |
static void |
closePar() |
static void |
comma() |
static void |
disable_tracing()
Disable tracing.
|
static void |
element() |
static void |
enable_tracing()
Enable tracing.
|
static void |
expr() |
static void |
exprContinuation() |
static void |
exprManyMULTDIVIDE() |
static void |
exprMULTDIVIDE() |
static void |
exprMULTDIVIDEContinuation() |
static void |
exprWithFirst() |
static void |
exprWithoutFirst() |
static void |
FormalParameters() |
static ParseException |
generateParseException()
Generate ParseException.
|
static Token |
getNextToken()
Get the next Token.
|
static Token |
getToken(int index)
Get the specific Token.
|
static void |
main(java.lang.String[] args) |
static void |
openPar() |
static void |
parse() |
static Equation |
parse(Breakpoint breakpoint,
java.lang.String text)
Parse an equation.
|
void |
ReInit(EquationParserTokenManager tm)
Reinitialise.
|
static void |
ReInit(java.io.InputStream stream)
Reinitialise.
|
static void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
static void |
ReInit(java.io.Reader stream)
Reinitialise.
|
static void |
unary() |
public static EquationParserTokenManager token_source
public static Token token
public static Token jj_nt
public EquationParser(java.io.InputStream stream)
public EquationParser(java.io.InputStream stream, java.lang.String encoding)
public EquationParser(java.io.Reader stream)
public EquationParser(EquationParserTokenManager tm)
public static void main(java.lang.String[] args) throws ParseException
ParseException
public static Equation parse(Breakpoint breakpoint, java.lang.String text) throws ParseException
text
- the equationParseException
public static final void parse() throws ParseException
ParseException
public static final void block() throws ParseException
ParseException
public static final void comma() throws ParseException
ParseException
public static final void openPar() throws ParseException
ParseException
public static final void closePar() throws ParseException
ParseException
public static final void expr() throws ParseException
ParseException
public static final void exprWithoutFirst() throws ParseException
ParseException
public static final void exprWithFirst() throws ParseException
ParseException
public static final void exprManyMULTDIVIDE() throws ParseException
ParseException
public static final void exprMULTDIVIDEContinuation() throws ParseException
ParseException
public static final void exprMULTDIVIDE() throws ParseException
ParseException
public static final void exprContinuation() throws ParseException
ParseException
public static final void unary() throws ParseException
ParseException
public static final void FormalParameters() throws ParseException
ParseException
public static final void element() throws ParseException
ParseException
public static void ReInit(java.io.InputStream stream)
public static void ReInit(java.io.InputStream stream, java.lang.String encoding)
public static void ReInit(java.io.Reader stream)
public void ReInit(EquationParserTokenManager tm)
public static final Token getNextToken()
public static final Token getToken(int index)
public static ParseException generateParseException()
public static final void enable_tracing()
public static final void disable_tracing()
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence