[antlr-interest] how to make a parser implement an interface?

Gerald Rosenberg gerald at certiv.net
Tue Jun 2 22:22:49 PDT 2009


Use the "superClass" option to specify the class that your 
ExampleParser will extend.  That class can then implement your 
interface (must also extend Parser).  You will also find it 
convenient to use the superclass to implement the bulk of your member 
routines as well.



At 09:44 PM 6/2/2009, you wrote:
>Hello everybody!!
>
>I'm using antlr3.  :-)
>
>
>after generate code, parser class like this:
>
>     public class ExampleParser extends Parser {
>         ... ...
>     }
>
>but, I hope like this:
>
>     public class ExampleParser extends Parser implements ExampleInterface, {
>         ... ...
>     }
>
>
>Is there anyone can help me, please?
>
>
>Appreciate your help.
>   and
>Thanks a lot in advance.
>
>
>----------
>What can you do with the new Windows Live? 
><http://www.microsoft.com/windows/windowslive/default.aspx>Find out
>List: http://www.antlr.org/mailman/listinfo/antlr-interest
>Unsubscribe: 
>http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090602/b2a283e3/attachment.html 


More information about the antlr-interest mailing list