Package jason.asSyntax.parser
Class as2j
java.lang.Object
jason.asSyntax.parser.as2j
- All Implemented Interfaces:
as2jConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface jason.asSyntax.parser.as2jConstants
ATOM, CHAR, DEFAULT, DIGIT, EOF, LC_LETTER, LETTER, NUMBER, STRING, TK_BEGIN, TK_ELIF, TK_ELSE, TK_END, TK_FALSE, TK_FOR, TK_GOAL_CONDITION, TK_IF, TK_INTDIV, TK_INTMOD, TK_LABEL_AT, TK_LEFT_ARROW, TK_NEG, TK_NOT, TK_NS_SEP, TK_PAND, TK_POR, TK_RULE_SEP, TK_TRUE, TK_WHILE, tokenImage, UNNAMEDVAR, UNNAMEDVARID, UP_LETTER, VAR -
Constructor Summary
ConstructorsConstructorDescriptionas2j(as2jTokenManager tm) Constructor with generated Token Manager.as2j(InputStream stream) Constructor with InputStream.as2j(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal voidfinal Objectfinal Objectfinal Objectfinal Objectfinal Literalbelief()final Objectfinal booleanfinal Predfinal voidDisable tracing.final voidEnable tracing.final Termfunction()Generate ParseException.final TokenGet the next Token.getNS()final TokengetToken(int index) Get the specific Token.final Literalfinal ListTermImpllist()final Literalliteral()final Objectlog_expr()final Objectfinal Objectfinal Atomfinal Planplan()final Literalfinal PlanBodyfinal PlanBodyfinal PlanBodyfinal Predfinal Predpred()voidReinitialise.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.final Objectrel_expr()final TermvoidvoidsetASLSource(String src) voidfinal PlanBodyfinal PlanBodyfinal PlanBodystmtFOR()final PlanBodystmtIF()final PlanBodyfinal PlanBodyfinal StringTermstring()final Termterm()final Termfinal Listterms()final Triggertrigger()final VarTerm
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
as2j
Constructor with InputStream. -
as2j
Constructor with InputStream and supplied encoding -
as2j
Constructor. -
as2j
Constructor with generated Token Manager.
-
-
Method Details
-
setAg
-
setNS
-
getNS
-
setASLSource
-
agent
- Throws:
ParseExceptionJasonException
-
agent_component
- Throws:
ParseExceptionJasonException
-
directive
- Throws:
ParseExceptionJasonException
-
directive_arguments
- Throws:
ParseException
-
belief
- Throws:
ParseException
-
initial_goal
- Throws:
ParseException
-
plan
- Throws:
ParseException
-
plan_annotation
- Throws:
ParseException
-
trigger
- Throws:
ParseException
-
plan_body
- Throws:
ParseException
-
plan_body_term
- Throws:
ParseException
-
plan_body_factor
- Throws:
ParseException
-
statement
- Throws:
ParseException
-
stmtIF
- Throws:
ParseException
-
stmtIFCommon
- Throws:
ParseException
-
stmtFOR
- Throws:
ParseException
-
stmtWHILE
- Throws:
ParseException
-
stmt_body
- Throws:
ParseException
-
body_formula
- Throws:
ParseException
-
rule_plan_term
- Throws:
ParseException
-
plan_term_annotation
- Throws:
ParseException
-
literal
- Throws:
ParseException
-
namespace
- Throws:
ParseException
-
pred
- Throws:
ParseException
-
terms
- Throws:
ParseException
-
term
- Throws:
ParseException
-
list
- Throws:
ParseException
-
term_in_list
- Throws:
ParseException
-
log_expr
- Throws:
ParseException
-
log_expr_trm
- Throws:
ParseException
-
log_expr_factor
- Throws:
ParseException
-
rel_expr
- Throws:
ParseException
-
arithm_expr
- Throws:
ParseException
-
arithm_expr_trm
- Throws:
ParseException
-
arithm_expr_factor
- Throws:
ParseException
-
arithm_expr_simple
- Throws:
ParseException
-
function
- Throws:
ParseException
-
var
- Throws:
ParseException
-
string
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-