edu.toronto.cs.cparser
Class CILTransformerUtil

java.lang.Object
  extended by edu.toronto.cs.cparser.CILTransformerUtil

public class CILTransformerUtil
extends java.lang.Object


Constructor Summary
CILTransformerUtil()
           
 
Method Summary
static Expr getProgram(ExprFactory fac, java.io.Reader file)
          Parses an input stream into an expression tree same as getProgram (fac, file, false)
static Expr getProgram(ExprFactory fac, java.io.Reader file, boolean stmtBlocking)
          Describe getProgram method here.
static Expr getProgram(ExprFactory fac, java.io.Reader file, boolean stmtBlocking, int traceFrom, int traceTo)
           
static Expr getProgram(ExprFactory fac, java.io.Reader file, int traceFrom, int traceTo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CILTransformerUtil

public CILTransformerUtil()
Method Detail

getProgram

public static Expr getProgram(ExprFactory fac,
                              java.io.Reader file)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Parses an input stream into an expression tree same as getProgram (fac, file, false)

Throws:
antlr.RecognitionException
antlr.TokenStreamException

getProgram

public static Expr getProgram(ExprFactory fac,
                              java.io.Reader file,
                              int traceFrom,
                              int traceTo)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

getProgram

public static Expr getProgram(ExprFactory fac,
                              java.io.Reader file,
                              boolean stmtBlocking)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Describe getProgram method here. Parses an input stream into an expression tree

Parameters:
fac - an ExprFactory used to build expressions
file - a Reader over the input stream
stmtBlocking - indicates whether to block the program
Returns:
a parsed program as an Expr
Throws:
antlr.RecognitionException - if input is not a CIL program
antlr.TokenStreamException - if there is an error in the input stream

getProgram

public static Expr getProgram(ExprFactory fac,
                              java.io.Reader file,
                              boolean stmtBlocking,
                              int traceFrom,
                              int traceTo)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException