Re: Netbeans E-Lang language support
Kevin Reid <kpreid-M/[email protected]> Wed, 21 Aug 2013 17:51:31 -0700
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Aug 21, 2013, at 8:53, Marcelo D. RĂ© <[email protected]> wrote: > Now the need to develop in E has returned. Unfortunately the module that I had used is no more supported in Netbeans, so I start again a new project, this time directly in Antlr. > I get the easy part working (I think), the Lexer but have problem with the Parser. I have rewrite the grammar in Antlr3 and I use Antlrwork1.5 to generate the Lexer/Parser. > I do not know enough about Antlr son my ".g" file surely has bug. Actually it generate a Parser of about 867kb and it wont compile. I don't have the spare time to debug your parser for you, but I suggest you try starting with the Antlr grammar in E-on-CL (which, despite the context, compiles to Java). Have a look at <https://github.com/kpreid/e-on-cl/tree/master/antlr> or clone the git repository. This grammar is part of an E implementation with a substantial test suite. It is derived from the Antlr grammar in the E-on-Java distribution but has had a lot of further work. -- Kevin Reid <http://switchb.org/kpreid/>