polyglot.frontend
Class CupParser

java.lang.Object
  extended by polyglot.frontend.CupParser
All Implemented Interfaces:
Parser

public class CupParser
extends java.lang.Object
implements Parser

A parser implemented with a Cup generated-parser.


Field Summary
protected  ErrorQueue eq
           
protected  java_cup.runtime.lr_parser grm
           
protected  Source source
           
 
Constructor Summary
CupParser(java_cup.runtime.lr_parser grm, Source source, ErrorQueue eq)
           
 
Method Summary
 Node parse()
          Return the root of the AST
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

grm

protected java_cup.runtime.lr_parser grm

source

protected Source source

eq

protected ErrorQueue eq
Constructor Detail

CupParser

public CupParser(java_cup.runtime.lr_parser grm,
                 Source source,
                 ErrorQueue eq)
Method Detail

parse

public Node parse()
Description copied from interface: Parser
Return the root of the AST

Specified by:
parse in interface Parser

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object