Re: Can anyone give me a help about developing antlr formatter
The C++ module uses ANTLR for parsing and also provides formatting support. That might be useful Regards Siddhesh Rane September 23, 2019 4:08 AM, "Eric Bresie" wrote: > Also noticed there is a Netbeans plugin list on the Tools section of the > ANTLR.org site. > > https://www.antlr.org/tools.html > > Eric Bresie > ebre...@gmail.com > >> On September 20, 2019 at 4:26:51 AM CDT, Mario Schroeder >> wrote: >> Hi, >> >> maybe this one can help you as well: >> https://github.com/mario-s/nb-hyperledger >> It uses a ANTLR Grammar to generate Lexer and Parser. >> >> A lot of ANTLR samples can be found in this repository: >> https://github.com/antlr/grammars-v4 >> >> Greetings, >> Mario >> >> Am Fr., 20. Sept. 2019 um 10:29 Uhr schrieb Alessandro < >> alex.fala...@gmail.com>: >> >> Hi Tim, >> I am interested too. >> >> I have a plugin with an editor using a JFlex based lexer and a Parboiled >> based parser and I would like to move to a unified solution with an ANTLR >> based lexer and parser. >> >> It would be wonderful if you could share something. >> >> Greets, >> Alex >> >> Il giorno lun 16 set 2019 alle ore 01:48 Tim Boudreau >> >> ha scritto: >> >>> I have some stuff under development that might be useful for that. You >> want >>> to format a language that has an Antlr grammar, right? >>> >>> -Tim >>> >>> On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung >>> wrote: >>> Hi All Can anyone give me a help about developing antlr formatter? Where >> i can get an example to develop a custom formatter? Thanks From Peter >>> M >>> -- >>> http://timboudreau.com >>> - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can anyone give me a help about developing antlr formatter
Thanks everybody for the suggestions. @Mario Schroeder i will start from your plugin project as it seems a small focused example of how to add a new language editor to NetBeans. @Eric Bresie the plugin you mention is to develop ANTLR grammars and it will be certainly useful but it is not aimed to automatically generate the NetBeans Lexer and Parser plumbing. @Siddesh Rane the C++ module would be no doubt a thorough example of adding a new language editor to NetBeans but I am afraid I would get lost in its big sources. Regards, Alex Il giorno lun 23 set 2019 alle ore 09:44 Siddhesh Rane < siddheshr...@disroot.org> ha scritto: > The C++ module uses ANTLR for parsing and also provides formatting > support. That might be useful > > Regards > Siddhesh Rane > > September 23, 2019 4:08 AM, "Eric Bresie" wrote: > > > Also noticed there is a Netbeans plugin list on the Tools section of the > ANTLR.org site. > > > > https://www.antlr.org/tools.html > > > > Eric Bresie > > ebre...@gmail.com > > > >> On September 20, 2019 at 4:26:51 AM CDT, Mario Schroeder < > ma.schroe...@gmail.com> wrote: > >> Hi, > >> > >> maybe this one can help you as well: > >> https://github.com/mario-s/nb-hyperledger > >> It uses a ANTLR Grammar to generate Lexer and Parser. > >> > >> A lot of ANTLR samples can be found in this repository: > >> https://github.com/antlr/grammars-v4 > >> > >> Greetings, > >> Mario > >> > >> Am Fr., 20. Sept. 2019 um 10:29 Uhr schrieb Alessandro < > >> alex.fala...@gmail.com>: > >> > >> Hi Tim, > >> I am interested too. > >> > >> I have a plugin with an editor using a JFlex based lexer and a Parboiled > >> based parser and I would like to move to a unified solution with an > ANTLR > >> based lexer and parser. > >> > >> It would be wonderful if you could share something. > >> > >> Greets, > >> Alex > >> > >> Il giorno lun 16 set 2019 alle ore 01:48 Tim Boudreau < > niftin...@gmail.com > >>> > >> ha scritto: > >> > >>> I have some stuff under development that might be useful for that. You > >> want > >>> to format a language that has an Antlr grammar, right? > >>> > >>> -Tim > >>> > >>> On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung > >>> wrote: > >>> > Hi All > Can anyone give me a help about developing antlr formatter? Where > >> i > can get an example to develop a custom formatter? > Thanks > From Peter > > >>> M > >>> -- > >>> http://timboudreau.com > >>> > > - > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Can anyone give me a help about developing antlr formatter
The work in progress is on the "mavenize" branch here - https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans - It is 44 modules (comprising generic support for generating most of a plugin for any Antlr grammar from annotations, and then in antlr-editing-plugins, a suite of modules for Antlr itself) :-) There *was* an Antlr formatter, but this project started with working on an exiting Antlr plugin I forked, evolved into generic Antlr support, and I'm now in the process of reassembling the original Antlr-editing-only module to eat my own dogfood, as a set of modules with all the features of the original, plus lots more (like live-syntax highlighting of files in the language of the grammar you're editing, which get updated when you edit the grammar, visual syntax trees and more - one of the biggest PITA's of Antlr development is writing a rule that overrides another rule and not knowing it until long after you broke it and then trying to figure out *what* broke it, so instant feedback as you edit a grammar is a necessity). I haven't add formatting back in yet, though. But I'll keep you posted. -Tim On Fri, Sep 20, 2019 at 1:17 AM Peter Cheung wrote: > Dear Tim >Yes, i want to format antlr lang. > Thanks > From Peter > > From: Tim Boudreau > Sent: Monday, September 16, 2019 7:48 AM > To: dev@netbeans.apache.org > Subject: Re: Can anyone give me a help about developing antlr formatter > > I have some stuff under development that might be useful for that. You want > to format a language that has an Antlr grammar, right? > > -Tim > > On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung > wrote: > > > Hi All > > Can anyone give me a help about developing antlr formatter? Where i > > can get an example to develop a custom formatter? > > Thanks > > From Peter > > > M > -- > http://timboudreau.com > -- http://timboudreau.com
Re: Why no RELEASE111 of ValidationAPI?
I believe ValidationAPI is part of the javacard cluster - or at least it was developed there - so, that means without the javacard modules, there is probably nothing that depends on it. It is just a wrapper for this - https://github.com/timboudreau/simplevalidation - originally on java.net, I moved it to github since that. And just a reminder: "nobody maintaining" something that works is a non-problem - software *can* actually be finished, if you carve problems into small enough and well-defined enough chunks (and you and everyone should). Lack of maintenance might mean neglect, but it also might mean it simply works. But in this case it has probably not reached a state of perfection yet, and it *is* maintained (if I had it to write again, a bunch of it could be done much more cleanly taking advantage of lambdas). -Tim On Thu, Sep 19, 2019 at 5:33 AM Andreas Sewe wrote: > Eric Barboni wrote: > > Using org.netbeans.external: ValidationAPI :RELEASE90 should be enough. > It is just a jar. > > Thanks for digging into this, Eric. > > Turns out that ValidationAPI RELEASE82 is byte-for-byte identical to > RELEASE90, RELEASE100, and RELEASE110. So it doesn't really matter which > version I pick. > > It's a bit worrying, though, that apparently no-one maintains that API > anymore. But unless it suddenly becomes incompatible with Java Umpteen > (not impossible, given the speed with which Java is changing nowadays), > I can live with this. > > Best wishes, > > Andreas > > -- > Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 > CQSE GmbH | Centa-Hafenbraedl-Strasse 59 | 81249 Muenchen | www.cqse.eu > Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas > > -- http://timboudreau.com
RE: Why no RELEASE111 of ValidationAPI?
Hi, Maybe it's possible to use com.mastfrog.simplevalidation.1.13 as external instead of the binairies we use at the moment ? Regards Eric -Message d'origine- De : Tim Boudreau Envoyé : lundi 23 septembre 2019 15:27 À : dev@netbeans.apache.org Objet : Re: Why no RELEASE111 of ValidationAPI? I believe ValidationAPI is part of the javacard cluster - or at least it was developed there - so, that means without the javacard modules, there is probably nothing that depends on it. It is just a wrapper for this - https://github.com/timboudreau/simplevalidation - originally on java.net, I moved it to github since that. And just a reminder: "nobody maintaining" something that works is a non-problem - software *can* actually be finished, if you carve problems into small enough and well-defined enough chunks (and you and everyone should). Lack of maintenance might mean neglect, but it also might mean it simply works. But in this case it has probably not reached a state of perfection yet, and it *is* maintained (if I had it to write again, a bunch of it could be done much more cleanly taking advantage of lambdas). -Tim On Thu, Sep 19, 2019 at 5:33 AM Andreas Sewe wrote: > Eric Barboni wrote: > > Using org.netbeans.external: ValidationAPI :RELEASE90 should be enough. > It is just a jar. > > Thanks for digging into this, Eric. > > Turns out that ValidationAPI RELEASE82 is byte-for-byte identical to > RELEASE90, RELEASE100, and RELEASE110. So it doesn't really matter > which version I pick. > > It's a bit worrying, though, that apparently no-one maintains that API > anymore. But unless it suddenly becomes incompatible with Java Umpteen > (not impossible, given the speed with which Java is changing > nowadays), I can live with this. > > Best wishes, > > Andreas > > -- > Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | > Centa-Hafenbraedl-Strasse 59 | 81249 Muenchen | www.cqse.eu > Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas > > -- http://timboudreau.com - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists