public class GoloParser extends java.lang.Object implements GoloParserTreeConstants, GoloParserConstants
Modifier and Type | Class and Description |
---|---|
static class |
GoloParser.FunctionRef |
static class |
GoloParser.ParserClassRef |
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, JJTMATCH, JJTMEMBERDECLARATION, JJTMETHODINVOCATION, JJTMODULEDECLARATION, JJTMULTIPLICATIVEEXPRESSION, JJTNAMEDAUGMENTATIONDECLARATION, jjtNodeName, JJTOREXPRESSION, JJTORIFNULLEXPRESSION, JJTREFERENCE, JJTRELATIONALEXPRESSION, JJTRETURN, JJTSTRUCTDECLARATION, JJTTHROW, JJTTOPLEVELDECLARATION, JJTTRYCATCHFINALLY, JJTUNARYEXPRESSION, JJTUNIONDECLARATION, JJTUNIONVALUE, JJTVOID, JJTWHILELOOP
ADDITIVE_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
ParseException
public final void BlankLines() throws ParseException
ParseException
public final java.lang.String QualifiedName() throws ParseException
ParseException
public final java.util.List<java.lang.String> Parameters() throws ParseException
ParseException
public final java.util.List<java.lang.String> AugmentationNames() throws ParseException
ParseException
public final java.lang.String StringLiteral() throws ParseException
ParseException
public final java.lang.Character CharLiteral() throws ParseException
ParseException
public final java.lang.Long LongLiteral() throws ParseException
ParseException
public final java.math.BigInteger BigIntegerLiteral() throws ParseException
ParseException
public final java.lang.Integer IntegerLiteral() throws ParseException
ParseException
public final GoloParser.ParserClassRef ClassLiteral() throws ParseException
ParseException
public final java.lang.Double DoubleLiteral() throws ParseException
ParseException
public final java.lang.Float FloatLiteral() throws ParseException
ParseException
public final java.math.BigDecimal BigDecimalLiteral() throws ParseException
ParseException
public final GoloParser.FunctionRef FunctionRef() throws ParseException
ParseException
public final java.lang.String Documentation() throws ParseException
ParseException
public final ASTCompilationUnit CompilationUnit() throws ParseException
ParseException
public final void ModuleDeclaration() throws ParseException
ParseException
public final java.util.List<java.lang.String> MultiImport() throws ParseException
ParseException
public final void ImportDeclaration() throws ParseException
ParseException
public final void ToplevelDeclaration() throws ParseException
ParseException
public final ASTMemberDeclaration MemberDeclaration() throws ParseException
ParseException
public final ASTStructDeclaration StructDeclaration() throws ParseException
ParseException
public final void UnionValue() throws ParseException
ParseException
public final ASTUnionDeclaration UnionDeclaration() throws ParseException
ParseException
public final void AugmentationDeclaration(java.lang.String context) throws ParseException
ParseException
public final ASTNamedAugmentationDeclaration NamedAugmentationDeclaration() throws ParseException
ParseException
public final ASTAugmentDeclaration AugmentDeclaration() throws ParseException
ParseException
public final ASTFunctionDeclaration FunctionDeclaration() throws ParseException
ParseException
public final ASTDecoratorDeclaration DecoratorDeclaration() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void Continue() throws ParseException
ParseException
public final void Break() throws ParseException
ParseException
public final void Throw() throws ParseException
ParseException
public final void WhileLoop() throws ParseException
ParseException
public final void ForLoop() throws ParseException
ParseException
public final void ForEachLoop() throws ParseException
ParseException
public final void TryCatchFinally() throws ParseException
ParseException
public final void ExpressionStatement() throws ParseException
ParseException
public final void Atom() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void InvocationExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void OrExpression() throws ParseException
ParseException
public final void OrIfNullExpression() throws ParseException
ParseException
public final void MethodInvocation() throws ParseException
ParseException
public final void Block() throws ParseException
ParseException
public final void Function() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final void CollectionLiteral() throws ParseException
ParseException
public final void Reference() throws ParseException
ParseException
public final ASTDestructuringAssignment DestructuringAssignment() throws ParseException
ParseException
public final java.util.List<java.lang.String> DestructuredNames() throws ParseException
ParseException
public final ASTLetOrVar LetOrVar() throws ParseException
ParseException
public final void Assignment() throws ParseException
ParseException
public final void Return() throws ParseException
ParseException
public final void Argument() throws ParseException
ParseException
public final void Arguments() throws ParseException
ParseException
public final ASTAnonymousFunctionInvocation AnonymousFunctionInvocation() throws ParseException
ParseException
public final void FunctionInvocation() throws ParseException
ParseException
public final void ConditionalBranching() throws ParseException
ParseException
public final void Case() throws ParseException
ParseException
public final void Match() throws ParseException
ParseException
public 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()