parser
Class Parser
java.lang.Object
parser.Parser
public class Parser
- extends java.lang.Object
The parser driver class
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser()
lexAndParse
public static <F extends ParserFactory> F lexAndParse(F f,
CoolTokenLexer lexer)
throws LexParseError
- Throws:
LexParseError
lexAndParseCoolToken
public static <F extends ParserFactory> F lexAndParseCoolToken(F f,
java.lang.String[] files)
throws java.lang.Exception
- Throws:
java.lang.Exception
lexAndParseCoolSource
public static <F extends ParserFactory> F lexAndParseCoolSource(F f,
java.lang.String[] files)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
- Reads lexed tokens from consosle, and outputs the parse tree