Antlr usage in netbeans 6.1

View: New views
2 Messages — Rating Filter:   Alert me  

Antlr usage in netbeans 6.1

by Allan Davis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I am trying to figure how to use antlr as my lexer for a project I am
building.  The document i found was
http://lexer.netbeans.org/doc/antlr.html.  After preforming the tasks,
the project is all red.  After searching the netbeans source code i
cannot find the supporting package anywhere.  Can anyone give me
guidance on where i can search or what i have to  write to make this work?

Thanks
Alley

Re: Antlr usage in netbeans 6.1

by David Strupl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

we use ANTLR based grammar in the editor for JavaFX Script language. You can
find the lexer related code in JavaFX Lexer module
http://hg.netbeans.org/main/contrib/file/3a30949c96bc/javafx.lexer/
(the main/contrib of javafx.* should work with release61 of main).

You can examine the module sources for inspiration. This module is used from
javafx.editor module. Please try to open both modules in the IDE and check their
dependencies (+source code).

The person behind the lexer for JavaFX is Rasta (moonko@...) so you can
also try to ask him if you have some specific question about the javafx.lexer
module.

I hope this will help at least a bit,

David

Allan Davis napsal(a):

> Hello,
> I am trying to figure how to use antlr as my lexer for a project I am
> building.  The document i found was
> http://lexer.netbeans.org/doc/antlr.html.  After preforming the tasks,
> the project is all red.  After searching the netbeans source code i
> cannot find the supporting package anywhere.  Can anyone give me
> guidance on where i can search or what i have to  write to make this work?
>
> Thanks
> Alley

--
David Strupl
http://dstrupl.blogspot.com