FYI - due to your question, I decided to prioritize Antlr formatting, and
it is working - along with a generic API for writing formatters for any
file format based on Antlr grammars.  I should have something up on my
update center in the next week or two.

-Tim


On Tue, Oct 1, 2019 at 12:02 PM Peter Cheung <mcheun...@hotmail.com> wrote:

> I finally found an example
> https://github.com/iconmaster5326/SourceNetbeansPlugin/blob/cb739ae7d1017e4db88fe2e517bf3e8d816ca4e3/src/com/iconmaster/srcplugin/editor/SourceReformatFactory.java
>
>
> Thanks
> From Peter
> ________________________________
> From: Peter Cheung <mcheun...@hotmail.com>
> Sent: Tuesday, September 24, 2019 8:07 PM
> To: dev@netbeans.apache.org <dev@netbeans.apache.org>
> Subject: Re: Can anyone give me a help about developing antlr formatter
>
> Thank you Tim
> ________________________________
> From: Tim Boudreau <niftin...@gmail.com>
> Sent: Monday, September 23, 2019 9:05 PM
> To: dev@netbeans.apache.org <dev@netbeans.apache.org>
> Subject: 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 <mcheun...@hotmail.com>
> wrote:
>
> > Dear Tim
> >    Yes, i want to format antlr lang.
> > Thanks
> > From Peter
> > ________________________________
> > From: Tim Boudreau <niftin...@gmail.com>
> > Sent: Monday, September 16, 2019 7:48 AM
> > To: dev@netbeans.apache.org <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 <mcheun...@hotmail.com>
> > 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
>


-- 
http://timboudreau.com

Reply via email to