edu.toronto.cs.gclang.parser
Class GCLangParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by edu.toronto.cs.gclang.parser.GCLangParser
All Implemented Interfaces:
GCLangLexerTokenTypes

public class GCLangParser
extends antlr.LLkParser
implements GCLangLexerTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface edu.toronto.cs.gclang.parser.GCLangLexerTokenTypes
AND, ASSIGNOP, ASSIGNOPSPEC, ATOM, BOOLEAN, CHOICE, COL, COMMA, COMMENT, DIGIT, DIV, ELSE, EOF, EQ, FALSE, FI, GEQ, GT, IF, IFF, IMPLIES, INIT, LBRACE, LEQ, LPAREN, LT, MINUS, MOD, MULT, NAME, NEG, NEQ, NEWLINE, NULL_TREE_LOOKAHEAD, NUMBER, OR, PLUS, RBRACE, RPAREN, RULES, SEMI, SKIP, THEN, TRUE, VAR, VARNAME, WS, XOR
 
Constructor Summary
  GCLangParser(antlr.ParserSharedInputState state)
           
  GCLangParser(antlr.TokenBuffer tokenBuf)
           
protected GCLangParser(antlr.TokenBuffer tokenBuf, int k)
           
  GCLangParser(antlr.TokenStream lexer)
           
protected GCLangParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void andExpr()
           
 void assign()
           
 void atom()
           
 void atomicCommand()
           
protected  java.lang.String atomValued()
           
 void basicExpr()
           
 void boolConstant()
           
protected  void buildTokenTypeASTClassMap()
           
 void choiceCommand()
           
 void command()
           
 void comparisonExpr()
           
 void expr()
           
 VariableTable getSymbolTable()
           
protected  void guard()
           
 void guardedCommand()
           
 void iffExpr()
           
 void implExpr()
           
 void initBlock()
           
 void ite()
           
 void iteBody()
           
 void modExpr()
           
 void multExpr()
           
 void negExpr()
           
 void number()
           
protected  java.lang.String numberValued()
           
 void orExpr()
           
 void rulesBlock()
           
 void sequenceCommand()
           
 void setElement()
           
 void setExpr()
           
 void skip()
           
 void start()
           
 void sumExpr()
           
protected  void textOrNumber()
           
protected  java.lang.String textOrNumberValued()
           
 java.util.Set textSet()
           
 java.lang.Object type()
           
 void varBlock()
           
 void varDecl()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1
Constructor Detail

GCLangParser

protected GCLangParser(antlr.TokenBuffer tokenBuf,
                       int k)

GCLangParser

public GCLangParser(antlr.TokenBuffer tokenBuf)

GCLangParser

protected GCLangParser(antlr.TokenStream lexer,
                       int k)

GCLangParser

public GCLangParser(antlr.TokenStream lexer)

GCLangParser

public GCLangParser(antlr.ParserSharedInputState state)
Method Detail

getSymbolTable

public VariableTable getSymbolTable()

expr

public final void expr()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

implExpr

public final void implExpr()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

setExpr

public final void setExpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

iffExpr

public final void iffExpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

orExpr

public final void orExpr()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

andExpr

public final void andExpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

negExpr

public final void negExpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

comparisonExpr

public final void comparisonExpr()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

modExpr

public final void modExpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sumExpr

public final void sumExpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

multExpr

public final void multExpr()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

basicExpr

public final void basicExpr()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

number

public final void number()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

boolConstant

public final void boolConstant()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

atomValued

protected final java.lang.String atomValued()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

numberValued

protected final java.lang.String numberValued()
                                       throws antlr.RecognitionException,
                                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

atom

public final void atom()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

setElement

public final void setElement()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

textOrNumber

protected final void textOrNumber()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

varBlock

public final void varBlock()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

varDecl

public final void varDecl()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

type

public final java.lang.Object type()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

textSet

public final java.util.Set textSet()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

textOrNumberValued

protected final java.lang.String textOrNumberValued()
                                             throws antlr.RecognitionException,
                                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

command

public final void command()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sequenceCommand

public final void sequenceCommand()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

choiceCommand

public final void choiceCommand()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

atomicCommand

public final void atomicCommand()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

assign

public final void assign()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

skip

public final void skip()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

ite

public final void ite()
               throws antlr.RecognitionException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

iteBody

public final void iteBody()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

guard

protected final void guard()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

guardedCommand

public final void guardedCommand()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

rulesBlock

public final void rulesBlock()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

initBlock

public final void initBlock()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

start

public final void start()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

buildTokenTypeASTClassMap

protected void buildTokenTypeASTClassMap()