edu.toronto.cs.gclang.parser
Class GCLangBuilder

java.lang.Object
  extended by antlr.TreeParser
      extended by edu.toronto.cs.gclang.parser.GCLangBuilder
All Implemented Interfaces:
GCLangLexerTokenTypes

public class GCLangBuilder
extends antlr.TreeParser
implements GCLangLexerTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, 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
GCLangBuilder()
           
GCLangBuilder(MvSetFactory _factory, VariableTable _symbolTable)
           
 
Method Summary
 MvSet assign(antlr.collections.AST _t)
           
protected  java.lang.String atom(antlr.collections.AST _t)
           
 MvSet atomicCommand(antlr.collections.AST _t)
           
 MvSet command(antlr.collections.AST _t)
           
protected  java.util.Set enumSet(antlr.collections.AST _t)
           
 MvSet expression(antlr.collections.AST _t)
           
 java.lang.String getName()
           
protected  MvSet guard(antlr.collections.AST _t)
           
 MvSet guardedCommand(antlr.collections.AST _t)
           
 void initBlock(antlr.collections.AST _t)
           
 MvSet ite(antlr.collections.AST _t)
           
 void program(antlr.collections.AST _t)
           
 void rulesBlock(antlr.collections.AST _t)
           
 MvSet skip(antlr.collections.AST _t)
           
protected  VariableTable.Variable variable(antlr.collections.AST _t)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
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
Constructor Detail

GCLangBuilder

public GCLangBuilder(MvSetFactory _factory,
                     VariableTable _symbolTable)

GCLangBuilder

public GCLangBuilder()
Method Detail

getName

public java.lang.String getName()

program

public final void program(antlr.collections.AST _t)
                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException

atom

protected final java.lang.String atom(antlr.collections.AST _t)
                               throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initBlock

public final void initBlock(antlr.collections.AST _t)
                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

rulesBlock

public final void rulesBlock(antlr.collections.AST _t)
                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

expression

public final MvSet expression(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

guardedCommand

public final MvSet guardedCommand(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

guard

protected final MvSet guard(antlr.collections.AST _t)
                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

command

public final MvSet command(antlr.collections.AST _t)
                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

atomicCommand

public final MvSet atomicCommand(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

assign

public final MvSet assign(antlr.collections.AST _t)
                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException

skip

public final MvSet skip(antlr.collections.AST _t)
                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

ite

public final MvSet ite(antlr.collections.AST _t)
                throws antlr.RecognitionException
Throws:
antlr.RecognitionException

variable

protected final VariableTable.Variable variable(antlr.collections.AST _t)
                                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

enumSet

protected final java.util.Set enumSet(antlr.collections.AST _t)
                               throws antlr.RecognitionException
Throws:
antlr.RecognitionException