public class Parser extends Object implements ParserTreeConstants, ParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTParserState |
jjtree |
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
JJTANNEXPR, JJTANNOTATION, JJTARRAYLITERAL, JJTBOOLTIEXPRTAIL, JJTCONSTELEM, JJTCONSTRAINT, JJTCONSTRAINTITEMS, JJTFLOATTIEXPRTAIL, JJTINTFLATEXPR, JJTINTLITERALS, JJTINTTIEXPRTAIL, JJTMODEL, JJTMODELEND, jjtNodeName, JJTSCALARFLATEXPR, JJTSETLITERAL, JJTSETTIEXPRTAIL, JJTSOLVEEXPR, JJTSOLVEITEM, JJTSOLVEKIND, JJTVARDECLITEM, JJTVARDECLITEMS, JJTVARIABLEEXPR, JJTVOID
ARRAY, ASGN, BOOL, COLON, COLONCOLON, COMMA, CONSTRAINT, DEFAULT, DOTDOT, EOF, FALSE, FLOAT, FLOAT_LITERAL, IDENT, INT, INT_LITERAL, LB, LBOX, LP, MAXIMIZE, MINIMIZE, OF, OUTPUT, PREDICATE, RB, RBOX, RP, SATISFY, SC, SET, SHOW, SHOW_COND, SINGLE_LINE_COMMENT, SOLVE, STRING_LITERAL, tokenImage, TRUE, VAR
Constructor and Description |
---|
Parser(InputStream stream)
Constructor with InputStream.
|
Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager.
|
Parser(Reader stream)
Constructor.
|
protected JJTParserState jjtree
public ParserTokenManager token_source
public Token token
public Token jj_nt
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public final void model() throws ParseException
ParseException
public final void pred_decl_items() throws ParseException
ParseException
public final void var_decl_items() throws ParseException
ParseException
public final void constraint_items() throws ParseException
ParseException
public final void model_end() throws ParseException
ParseException
public final void pred_decl_item() throws ParseException
ParseException
public final void var_decl_item() throws ParseException
ParseException
public final void array_decl_tail(ASTVarDeclItem v) throws ParseException
ParseException
public final Token ident_anns() throws ParseException
ParseException
public final void constraint_item() throws ParseException
ParseException
public final void constraint_elem() throws ParseException
ParseException
public final void solve_item() throws ParseException
ParseException
public final void solve_kind() throws ParseException
ParseException
public final void output_item() throws ParseException
ParseException
public final void output_elems() throws ParseException
ParseException
public final void output_elem() throws ParseException
ParseException
public final void pred_decl_args() throws ParseException
ParseException
public final void pred_decl_arg() throws ParseException
ParseException
public final void pred_arg_array_index() throws ParseException
ParseException
public final void pred_arg_array_tail() throws ParseException
ParseException
public final void non_array_ti_expr_tail() throws ParseException
ParseException
public final void scalar_ti_expr_tail() throws ParseException
ParseException
public final void bool_ti_expr_tail() throws ParseException
ParseException
public final void int_ti_expr_tail() throws ParseException
ParseException
public final void float_ti_expr_tail() throws ParseException
ParseException
public final void set_ti_expr_tail() throws ParseException
ParseException
public final void ann_exprs() throws ParseException
ParseException
public final void ann_expr() throws ParseException
ParseException
public final void flat_exprs() throws ParseException
ParseException
public final void flat_expr() throws ParseException
ParseException
public final void non_array_flat_exprs() throws ParseException
ParseException
public final void non_array_flat_expr() throws ParseException
ParseException
public final void scalar_flat_exprs() throws ParseException
ParseException
public final void scalar_flat_expr() throws ParseException
ParseException
public final void int_flat_expr() throws ParseException
ParseException
public final void variable_expr() throws ParseException
ParseException
public final void solve_expr() throws ParseException
ParseException
public final ArrayAccess array_access_expr() throws ParseException
ParseException
public final int int_index_expr() throws ParseException
ParseException
public final Token bool_literal() throws ParseException
ParseException
public final void int_literals() throws ParseException
ParseException
public final void set_literal() throws ParseException
ParseException
public final void array_literal() throws ParseException
ParseException
public final void annotations() throws ParseException
ParseException
public final void annotation() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
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()
Copyright © 2015. All rights reserved.