« Return to Thread: Antlr v3 and Netbeans Lexer Integration

Re: Antlr v3 and Netbeans Lexer Integration

by Andreas Stefik :: Rate this Message:

Reply to Author | View in Thread

Jeff,


Oh, I did not realize that anyone could update the wiki! I will just move it there, and instead of just having pointers to my code I will put the code right in the wiki. It would be great if we could just keep updating the wiki so that we have a solution that works for Antlr users.

Yaa, absolutely. The current tutorial, as you know, is for JavaCC, which is a perfectly fine Java-only LL parser generator, but .... I've written a number of compilers/VM's in JavaCC, Lex/Yacc, and (as of recently) am working on a new one in ANTLR, which in my opinion is far superior to its competitors (Tree walkers are so much easier to use then the visitor pattern ...) I've also taught classes using JavaCC and ANTLR and students I think, overwhelmingly, find ANTLR easier to use, in part because of ANTLRWorks.

So yaa, I couldn't agree more --- having ANTLR compatability up on the wiki would be nice.
 

I am also trying to get the parsing API working now with Antlr. Once I figure that I will post the code for that as well.

I'm looking forward to seeing that.

Andy
 

-Jeff Johnston



On Sun, Jun 21, 2009 at 6:04 PM, Andreas Stefik <stefika@...> wrote:
Jeff,

Thanks for posting this! I was considering writing one up myself, as I didn't see it online and have been working on something similar in my current project. Now I don't have too.

Perhaps this could be added to the Wiki for new language support, located here:

http://wiki.netbeans.org/New_Language_Support_TutorialDevelopment_Version

Anyway, thanks for posting your solution,

Andy


On Sun, Jun 21, 2009 at 3:30 PM, Jeff Johnston <jeff.johnston.mn@gmail.com> wrote:
I created a short blog about how to integrate a Netbeans Lexer with Antlr.

http://sqlraider.blogspot.com/2009/06/antlr-v3-and-netbeans-lexer-integration.html

-Jeff Johnston





 « Return to Thread: Antlr v3 and Netbeans Lexer Integration