java.lang.Object
coneforest.psylla.runtime.Parser
- All Implemented Interfaces:
ParserConstants
The Psylla language parser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface coneforest.psylla.runtime.ParserConstants
CLOSE_BRACE, COMMAND, COMMAND_UNQUALIFIED, COMMENT, COMMENT_MULTILINE, COMMENT_ONELINE, DEFAULT, DIGIT, EOF, EXPONENT, HEXDIGIT, IMMEDIATE, INTEGRAL, INTEGRAL_BIN, INTEGRAL_CHR, INTEGRAL_DEC, INTEGRAL_DEC_UNSIGNED, INTEGRAL_HEX, INTEGRAL_OCT, LETTER, LITERAL, NAME, NAME_QUOTED, NAME_SLASHED, NAME_SPECIAL_CHAR, OPEN_BRACE, REAL, REAL_UNSIGNED, REGEXP, REGEXP_SPECIAL, SIGN, STRING, STRING_SPECIAL, tokenImage -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new parser over givenreaderobject.Constructor with generated Token Manager.Parser(InputStream stream) Constructor with InputStream.Parser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidDisable tracing.final voidEnable tracing.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.voidReinitialise.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.final booleanTrace enabled.
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
Parser
Constructs a new parser over givenreaderobject.- Parameters:
oReader- thereaderobject.
-
Parser
Constructor with InputStream. -
Parser
Constructor with InputStream and supplied encoding -
Parser
Constructor. -
Parser
Constructor with generated Token Manager.
-
-
Method Details
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-