com.japisoft.formula
Class FormulaParser
java.lang.Object
|
+--com.japisoft.formula.FormulaParser
- public class FormulaParser
- extends java.lang.Object
Encapsulates yacc() parser functionality in a Java
class for quick code development
Method Summary |
int |
getCurrentPos()
|
void |
run()
A default run method, used for operating this parser
object in the background. |
void |
yyerror(java.lang.String error)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NL
public static final short NL
- See Also:
- Constant Field Values
NUM
public static final short NUM
- See Also:
- Constant Field Values
SYMB
public static final short SYMB
- See Also:
- Constant Field Values
NUMSYMB
public static final short NUMSYMB
- See Also:
- Constant Field Values
STRING
public static final short STRING
- See Also:
- Constant Field Values
OPERATOR
public static final short OPERATOR
- See Also:
- Constant Field Values
GREATEQ
public static final short GREATEQ
- See Also:
- Constant Field Values
LESSEQ
public static final short LESSEQ
- See Also:
- Constant Field Values
EQ
public static final short EQ
- See Also:
- Constant Field Values
DIFF1
public static final short DIFF1
- See Also:
- Constant Field Values
DIFF2
public static final short DIFF2
- See Also:
- Constant Field Values
TRUE
public static final short TRUE
- See Also:
- Constant Field Values
FALSE
public static final short FALSE
- See Also:
- Constant Field Values
OR
public static final short OR
- See Also:
- Constant Field Values
AND
public static final short AND
- See Also:
- Constant Field Values
IN
public static final short IN
- See Also:
- Constant Field Values
NEG
public static final short NEG
- See Also:
- Constant Field Values
IF
public static final short IF
- See Also:
- Constant Field Values
THEN
public static final short THEN
- See Also:
- Constant Field Values
ELSE
public static final short ELSE
- See Also:
- Constant Field Values
YYERRCODE
public static final short YYERRCODE
- See Also:
- Constant Field Values
FormulaParser
public FormulaParser(java.io.Reader r,
FormulaParsingListener listener)
FormulaParser
public FormulaParser()
- Default constructor. Turn off with -Jnoconstruct .
FormulaParser
public FormulaParser(boolean debugMe)
- Create a parser, setting the debug to true or false.
- Parameters:
debugMe
- true for debugging, false for no debug.
getCurrentPos
public int getCurrentPos()
yyerror
public void yyerror(java.lang.String error)
run
public void run()
- A default run method, used for operating this parser
object in the background. It is intended for extending Thread
or implementing Runnable. Turn off with -Jnorun .