public class GoloParser extends java.lang.Object implements GoloParserTreeConstants, GoloParserConstants
| Modifier and Type | Field and Description |
|---|---|
GoloCompilationException.Builder |
exceptionBuilder |
Token |
jj_nt
Next token.
|
protected JJTGoloParserState |
jjtree |
Token |
token
Current token.
|
GoloParserTokenManager |
token_source
Generated Token Manager.
|
JJTADDITIVEEXPRESSION, JJTANDEXPRESSION, JJTANONYMOUSFUNCTIONINVOCATION, JJTARGUMENT, JJTASSIGNMENT, JJTAUGMENTDECLARATION, JJTBLOCK, JJTBREAK, JJTCASE, JJTCOLLECTIONLITERAL, JJTCOMPILATIONUNIT, JJTCONDITIONALBRANCHING, JJTCONTINUE, JJTDECORATORDECLARATION, JJTDESTRUCTURINGASSIGNMENT, JJTEQUALITYEXPRESSION, JJTERROR, JJTEXPRESSIONSTATEMENT, JJTFOREACHLOOP, JJTFORLOOP, JJTFUNCTION, JJTFUNCTIONDECLARATION, JJTFUNCTIONINVOCATION, JJTIMPORTDECLARATION, JJTINVOCATIONEXPRESSION, JJTLETORVAR, JJTLITERAL, JJTLOCALDECLARATION, JJTMATCH, JJTMEMBERDECLARATION, JJTMETHODINVOCATION, JJTMODULEDECLARATION, JJTMULTIPLICATIVEEXPRESSION, JJTNAMEDAUGMENTATIONDECLARATION, jjtNodeName, JJTOREXPRESSION, JJTORIFNULLEXPRESSION, JJTREFERENCE, JJTRELATIONALEXPRESSION, JJTRETURN, JJTSTRUCTDECLARATION, JJTTHROW, JJTTOPLEVELDECLARATION, JJTTRYCATCHFINALLY, JJTUNARYEXPRESSION, JJTUNIONDECLARATION, JJTUNIONVALUE, JJTVOID, JJTWHILELOOPADDITIVE_OPERATOR, AND_OPERATOR, AUGMENT, BIGDECIMAL, BIGINTEGER, BREAK, CASE, CATCH, CHAR, CLASSREF, COLL_START, COMMENT, CONSTANT_INVOCATION, CONTINUE, DECORATOR, DEFAULT, DOCUMENTATION, ELSE, EOF, EQUALITY_OPERATOR, ESCAPE, ESCAPED, FALSE, FINALLY, FLOAT, FLOATING_NUMBER, FOR, FOREACH, FUNCTION, FUNREF, ID_REST, IDENTIFIER, IF, IMPORT, IN, INVALID, INVOCATION_OPERATOR, LET, LETTER, LOCAL, LONG_NUMBER, MATCH, MODULE, MULTI_STRING, MULTIPLICATIVE_OPERATOR, NAMEDAUGMENTATION, NEWLINE, NULL, NUMBER, OR_IFNULL_OPERATOR, OR_OPERATOR, OTHERWISE, RELATIONAL_OPERATOR, RETURN, STRING, STRUCT, THEN, THROW, tokenImage, TRUE, TRY, UNARY_OPERATOR, UNION, VAR, WHEN, WHILE, WITH, WithinDocumentation, WithinMultiString| Constructor and Description |
|---|
GoloParser(GoloParserTokenManager tm)
Constructor with generated Token Manager.
|
GoloParser(java.io.InputStream stream)
Constructor with InputStream.
|
GoloParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
GoloParser(java.io.Reader stream)
Constructor.
|
protected JJTGoloParserState jjtree
public GoloCompilationException.Builder exceptionBuilder
public GoloParserTokenManager token_source
public GoloParser(java.io.InputStream stream)
public GoloParser(java.io.InputStream stream, java.lang.String encoding)
public GoloParser(java.io.Reader stream)
public GoloParser(GoloParserTokenManager tm)
public final void BlankLine() throws ParseException
ParseExceptionpublic final void BlankLines() throws ParseException
ParseExceptionpublic final java.lang.String QualifiedName() throws ParseException
ParseExceptionpublic final java.util.List<java.lang.String> Parameters() throws ParseException
ParseExceptionpublic final java.util.List<java.lang.String> AugmentationNames() throws ParseException
ParseExceptionpublic final java.lang.String StringLiteral() throws ParseException
ParseExceptionpublic final java.lang.Character CharLiteral() throws ParseException
ParseExceptionpublic final java.lang.Long LongLiteral() throws ParseException
ParseExceptionpublic final java.math.BigInteger BigIntegerLiteral() throws ParseException
ParseExceptionpublic final java.lang.Integer IntegerLiteral() throws ParseException
ParseExceptionpublic final ClassReference ClassLiteral() throws ParseException
ParseExceptionpublic final java.lang.Double DoubleLiteral() throws ParseException
ParseExceptionpublic final java.lang.Float FloatLiteral() throws ParseException
ParseExceptionpublic final java.math.BigDecimal BigDecimalLiteral() throws ParseException
ParseExceptionpublic final FunctionRef FunctionRef() throws ParseException
ParseExceptionpublic final java.lang.String Documentation() throws ParseException
ParseExceptionpublic final ASTCompilationUnit CompilationUnit() throws ParseException
ParseExceptionpublic final void ModuleDeclaration() throws ParseException
ParseExceptionpublic final java.util.List<java.lang.String> MultiImport() throws ParseException
ParseExceptionpublic final void ImportDeclaration() throws ParseException
ParseExceptionpublic final void ToplevelDeclaration() throws ParseException
ParseExceptionpublic final ASTMemberDeclaration MemberDeclaration() throws ParseException
ParseExceptionpublic final ASTStructDeclaration StructDeclaration() throws ParseException
ParseExceptionpublic final void UnionValue() throws ParseException
ParseExceptionpublic final ASTUnionDeclaration UnionDeclaration() throws ParseException
ParseExceptionpublic final void AugmentationDeclaration() throws ParseException
ParseExceptionpublic final ASTNamedAugmentationDeclaration NamedAugmentationDeclaration() throws ParseException
ParseExceptionpublic final ASTAugmentDeclaration AugmentDeclaration() throws ParseException
ParseExceptionpublic final ASTFunctionDeclaration FunctionDeclaration() throws ParseException
ParseExceptionpublic final ASTDecoratorDeclaration DecoratorDeclaration() throws ParseException
ParseExceptionpublic final void Statement() throws ParseException
ParseExceptionpublic final void Continue() throws ParseException
ParseExceptionpublic final void Break() throws ParseException
ParseExceptionpublic final void Throw() throws ParseException
ParseExceptionpublic final void WhileLoop() throws ParseException
ParseExceptionpublic final void ForLoop() throws ParseException
ParseExceptionpublic final void ForEachLoop() throws ParseException
ParseExceptionpublic final void TryCatchFinally() throws ParseException
ParseExceptionpublic final void ExpressionStatement() throws ParseException
ParseExceptionpublic final void LocalDeclaration() throws ParseException
ParseExceptionpublic final void Atom() throws ParseException
ParseExceptionpublic final void UnaryExpression() throws ParseException
ParseExceptionpublic final void InvocationExpression() throws ParseException
ParseExceptionpublic final void MultiplicativeExpression() throws ParseException
ParseExceptionpublic final void AdditiveExpression() throws ParseException
ParseExceptionpublic final void RelationalExpression() throws ParseException
ParseExceptionpublic final void EqualityExpression() throws ParseException
ParseExceptionpublic final void AndExpression() throws ParseException
ParseExceptionpublic final void OrExpression() throws ParseException
ParseExceptionpublic final void OrIfNullExpression() throws ParseException
ParseExceptionpublic final void MethodInvocation() throws ParseException
ParseExceptionpublic final void Block() throws ParseException
ParseExceptionpublic final void Function() throws ParseException
ParseExceptionpublic final void Literal() throws ParseException
ParseExceptionpublic final void CollectionLiteral() throws ParseException
ParseExceptionpublic final void Reference() throws ParseException
ParseExceptionpublic final ASTDestructuringAssignment DestructuringAssignment() throws ParseException
ParseExceptionpublic final java.util.List<java.lang.String> DestructuredNames() throws ParseException
ParseExceptionpublic final ASTLetOrVar LetOrVar() throws ParseException
ParseExceptionpublic final void Assignment() throws ParseException
ParseExceptionpublic final void Return() throws ParseException
ParseExceptionpublic final void Argument() throws ParseException
ParseExceptionpublic final void Arguments() throws ParseException
ParseExceptionpublic final ASTAnonymousFunctionInvocation AnonymousFunctionInvocation() throws ParseException
ParseExceptionpublic final void FunctionInvocation() throws ParseException
ParseExceptionpublic final void ConditionalBranching() throws ParseException
ParseExceptionpublic final void Case() throws ParseException
ParseExceptionpublic final void Match() throws ParseException
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(GoloParserTokenManager tm)
public final Token getNextToken()
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()