[antlr-interest] Parser and TreeParser

Benhur krupa_gadde at yahoo.com
Tue Oct 15 07:01:49 PDT 2002


In the document "Runtime.html", under the section "What ANTLR 
generates", the below code is written. Do I need to write the 
MyParser extending Parser class also, if I want MyParser to extend 
TreeParser class or just extending TreeParser class is enough. 
Please let me know.

Thanks in advance
Benhur
-----------------------------------
class MyParser extends Parser;
options {
  exportVocab=My;
}
... rules ...

class MyLexer extends Lexer;
options {
  exportVocab=My;
}
... rules ...

class MyTreeParser extends TreeParser;
options {
  exportVocab=My;
}
... rules ...


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list