geneseo.cs.compiler
Interface Parser

All Known Implementing Classes:
LRParser, TracingLRParser

public interface Parser

The interface that any object that serves as a parser must present.


Method Summary
 ParseNode parse(TokenSeq input)
          Parse a sequence of tokens.
 

Method Detail

parse

public ParseNode parse(TokenSeq input)
                throws CompilerException
Parse a sequence of tokens.
Parameters:
input - The sequence of tokens to be parsed.
Returns:
The root of the syntax tree constructed from the tokens.
Throws:
CompilerException - If the token sequence represents a syntactically illegal input.