« Return to Thread: Antlr v3 and Netbeans Lexer Integration

Re: Antlr v3 and Netbeans Lexer Integration

by Bugzilla from hegjon@gmail.com :: Rate this Message:

Reply to Author | View in Thread

Great work!

I saw that you implemented TokenId like the orginal guide did.
I think its better to define SqlEditorTokenId as enum, and get rid of
the "int id".


Jonny Heggheim

On Mon, Jul 6, 2009 at 12:11 AM, Jeff
Johnston<jeff.johnston.mn@...> wrote:

> I updated the wiki now to include in more detail everything I have done so
> far with integrating ANTLR into Netbeans.
>
> http://wiki.netbeans.org/New_Language_Support_Tutorial_Antlr
>
> -Jeff Johnston
>
>
> On Sun, Jun 21, 2009 at 7:33 PM, Andreas Stefik <stefika@...> wrote:
>>
>> 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@...> 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