edu.toronto.cs.cparser
Class CILTransformerUtil
java.lang.Object
edu.toronto.cs.cparser.CILTransformerUtil
public class CILTransformerUtil
- extends java.lang.Object
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 |
CILTransformerUtil
public CILTransformerUtil()
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 expressionsfile
- a Reader
over the input streamstmtBlocking
- 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