[antlr-interest] Extract all rules/lexems/keywords of a Language.g into XML format?

Terence Parr parrt at cs.usfca.edu
Fri Jun 10 17:16:37 PDT 2011


Hi. Let me be more specific...I am going to serialize entire grammar as an augmented transition network into any generated parser or lexer. This will improve your recovery and error messages. There will be an API to figure out what could've come next.  I won't be using XML.

As for the GUI widget, I'm providing a simple widget that, using reflection if I remember correctly, pulls out the appropriate information from a parser/lexer and then manages to automatically syntax highlight and flag erroneous syntax. For semantics, the programmer would be on their own. It is a cheap way for someone to get an editor for their DSL.

sometime late this summer I am hoping to have early access

Ter
On Jun 10, 2011, at 2:22 AM, Ruslan Zasukhin wrote:

> On 6/10/11 12:37 AM, "Terence Parr" <parrt at cs.usfca.edu> wrote:
> 
> Hi Terence, 
> 
>> i have something like this but am not done.
> 
> AST of any grammar into XML ?
> 
> Great!
> 
> Just keep in mind please that cTAG and GCC-XML products and their tasks.
> I believe ANTLR is a goold-tool to do same -- even better -- even more.
> 
> 
> This do not presents in the v4 betas yet?
> Any chance on "early access"?  :-)
> 
> 
>> v4 will have a syntax highlighting  editor as a standard widget.
> 
> Can you explain this in more details?
> 
> You mean syntax highlighting editor where?
>  in ANTLRworks? 
> 
> Or ANTLR will be able produce something what
>  any EDITOR app can use later ?
> 
> 
> -- 
> Best regards,
> 
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
> 
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
> 
> [I feel the need: the need for speed]
> 
> 



More information about the antlr-interest mailing list