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

2011-06-09 Thread Terence Parr
i have something like this but am not done. v4 will have a syntax highlighting editor as a standard widget. T On Jun 9, 2011, at 11:52 AM, Ruslan Zasukhin wrote: > Hi All, > Hi Terrence, > > We have meet task, where we may want be able extract from >ANY ANTLR grammar > > Description of all

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

2011-06-09 Thread Ruslan Zasukhin
Hi All, Hi Terrence, We have meet task, where we may want be able extract from ANY ANTLR grammar Description of all Rules, Keywords, Lexems, Imaginary Tokens ... and put that info into e.g. XML format. Actually this can be considered as transformation of ANTLR grammar into XML form. I beli

[il-antlr-interest: 32722] Re: [antlr-interest] New Guy Question...

2011-06-09 Thread Jim Idle
The article describes a general method, not a universal solution. If you have a language where the such semantics apply, you will need a specific solution. In general these semantics are ignored for programming languages though, so this is somewhat pedantic. Jim > -Original Message- > Fro

[il-antlr-interest: 32715] [antlr-interest] C# Upgrade Woes

2011-06-09 Thread Kevin Carroll
I am attempting to update a set of grammar files for the C# version of ANTLR. The files work correctly with version 3.3.0.7239. When I attempt to use the same files with version 3.3.3.8388, I get the following error: error(100): PrimisScript.g:0:1: syntax error: antlr.print: MismatchedTreeNode

[il-antlr-interest: 32710] Re: [antlr-interest] [CSharp3] rule visibility in composite grammars

2011-06-09 Thread Douglas Godfrey
Almost all complex languages require a SymbolTable to resolve semantics and grammar ambiguities. Some languages only need a global scope while many need a NameSpaces and nested Scopes. Antlr itself has a SymbolTable with NameSpaces and nested Scopes. My proposal would be to generalize the Antlr Sym