public class Parser extends Object implements ParserTreeConstants, ParserConstants, Serializable
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
ParserTokenManager |
token_source |
JJTCONSTANT, JJTFUNNODE, jjtNodeName, JJTSTART, JJTVARNODE, JJTVOID
AND, ASSIGN, COLON, COMMA, CROSS, DECIMAL_LITERAL, DEFAULT, DIGIT1, DIGIT2, DIV, DOT, EOF, EQ, EXPONENT, FLOATING_POINT_LITERAL, GE, GT, INDENTIFIER1, INDENTIFIER2, INTEGER_LITERAL, LE, LETTER1, LETTER2, LRND, LSQ, LT, MINUS, MOD, MUL, NE, NO_DOT_IN_IDENTIFIERS, NOT, OR, PLUS, POWER, RRND, RSQ, SEMI, STRING_LITERAL, tokenImage
Constructor and Description |
---|
Parser(InputStream stream) |
Parser(ParserTokenManager tm) |
Parser(Reader stream) |
public ParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public Parser(InputStream stream)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public Node parseStream(Reader stream, JEP jep_in) throws ParseException
ParseException
public void restart(Reader stream, JEP jep_in)
public Node continueParse() throws ParseException
XJep j = new XJep(); Parser parse = j.getParse(); StringReader sr = new StringReader("x=1; y=2; z=3;"); parse.restart(sr,j); Node node; try { while((node = j.continueParse())!=null) { j.println(node); } }catch(ParseException e) {}
ParseException
public void setInitialTokenManagerState(int state)
state
- the state to be in. Currently the only legal values are DEFAULT and NO_DOT_IN_IDENTIFIERpublic final ASTStart Start() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void AssignExpression() throws ParseException
ParseException
public final void RightExpression() throws ParseException
ParseException
public final void OrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void EqualExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PowerExpression() throws ParseException
ParseException
public final void UnaryExpressionNotPlusMinus() throws ParseException
ParseException
public final void ListExpression() throws ParseException
ParseException
public final void LValue() throws ParseException
ParseException
public final void ArrayAccess() throws ParseException
ParseException
public final void Variable() throws ParseException
ParseException
public final void Function() throws ParseException
ParseException
public final void ArgumentList(int reqArguments, String functionName) throws ParseException
ParseException
public final String Identifier() throws ParseException
ParseException
public final void AnyConstant() throws ParseException
ParseException
public final Object RealConstant() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics