public class GoloParser extends 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.
|
JJTANONYMOUSFUNCTIONINVOCATION, JJTASSIGNMENT, JJTASSOCIATIVEEXPRESSION, JJTAUGMENTDECLARATION, JJTBLOCK, JJTBREAK, JJTCASE, JJTCOLLECTIONLITERAL, JJTCOMMUTATIVEEXPRESSION, JJTCOMPILATIONUNIT, JJTCONDITIONALBRANCHING, JJTCONTINUE, JJTERROR, JJTFOREACHLOOP, JJTFORLOOP, JJTFUNCTION, JJTFUNCTIONDECLARATION, JJTFUNCTIONINVOCATION, JJTIMPORTDECLARATION, JJTLETORVAR, JJTLITERAL, JJTMATCH, JJTMETHODINVOCATION, JJTMODULEDECLARATION, jjtNodeName, JJTREFERENCE, JJTRETURN, JJTSTRUCTDECLARATION, JJTTHROW, JJTTOPLEVELDECLARATION, JJTTRYCATCHFINALLY, JJTUNARYEXPRESSION, JJTVOID, JJTWHILELOOPASSOCIATIVE_OPERATOR, AUGMENT, BREAK, CASE, CATCH, CHAR, CLASSREF, COLL_START, COMMENT, COMMUTATIVE_OPERATOR, CONTINUE, DEFAULT, DOCUMENTATION, ELSE, EOF, ESCAPE, ESCAPED, FALSE, FINALLY, FLOAT, FLOATING_NUMBER, FOR, FOREACH, FUNCTION, FUNREF, ID_REST, IDENTIFIER, IF, IMPORT, IN, INVOCATION, LET, LETTER, LOCAL, LONG_NUMBER, MATCH, MODULE, MULTI_STRING, NEWLINE, NULL, NUMBER, OTHERWISE, RETURN, STRING, STRUCT, THEN, THROW, tokenImage, TRUE, TRY, UNARY_OPERATOR, VAR, WHEN, WHILE, WithinDocumentation, WithinMultiString| Constructor and Description |
|---|
GoloParser(GoloParserTokenManager tm)
Constructor with generated Token Manager.
|
GoloParser(InputStream stream)
Constructor with InputStream.
|
GoloParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
GoloParser(Reader stream)
Constructor.
|
protected JJTGoloParserState jjtree
public GoloCompilationException.Builder exceptionBuilder
public GoloParserTokenManager token_source
public Token token
public Token jj_nt
public GoloParser(InputStream stream)
public GoloParser(InputStream stream, String encoding)
public GoloParser(Reader stream)
public GoloParser(GoloParserTokenManager tm)
public final void BlankLine()
throws ParseException
ParseExceptionpublic final void BlankLines()
throws ParseException
ParseExceptionpublic final String QualifiedName() throws ParseException
ParseExceptionpublic final List<String> Arguments() throws ParseException
ParseExceptionpublic final String StringLiteral() throws ParseException
ParseExceptionpublic final Character CharLiteral() throws ParseException
ParseExceptionpublic final Long LongLiteral() throws ParseException
ParseExceptionpublic final Integer IntegerLiteral() throws ParseException
ParseExceptionpublic final GoloParser.ParserClassRef ClassLiteral() throws ParseException
ParseExceptionpublic final Double DoubleLiteral() throws ParseException
ParseExceptionpublic final Float FloatLiteral() throws ParseException
ParseExceptionpublic final GoloParser.FunctionRef FunctionRef() throws ParseException
ParseExceptionpublic final String Documentation() throws ParseException
ParseExceptionpublic final ASTCompilationUnit CompilationUnit() throws ParseException
ParseExceptionpublic final void ModuleDeclaration()
throws ParseException
ParseExceptionpublic final void ImportDeclaration()
throws ParseException
ParseExceptionpublic final void ToplevelDeclaration()
throws ParseException
ParseExceptionpublic final ASTStructDeclaration StructDeclaration() throws ParseException
ParseExceptionpublic final ASTAugmentDeclaration AugmentDeclaration() throws ParseException
ParseExceptionpublic final ASTFunctionDeclaration FunctionDeclaration() 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 TerminalExpression()
throws ParseException
ParseExceptionpublic final void UnaryExpression()
throws ParseException
ParseExceptionpublic final void CommutativeExpression()
throws ParseException
ParseExceptionpublic final void AssociativeExpression()
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 void LetOrVar()
throws ParseException
ParseExceptionpublic final void Assignment()
throws ParseException
ParseExceptionpublic final void Return()
throws ParseException
ParseExceptionpublic final void Expressions()
throws ParseException
ParseExceptionpublic final void 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(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(GoloParserTokenManager 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 © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.