[il-antlr-interest: 28025] Re: [antlr-interest] Multiple Lines with Implicit Endings in ANTLR

2010-02-23 Thread consiliens
If explicit endings are introduced then the problem is trivial to solve. MC_QUESTION : NL INT ('.'|')') NOT_END+ ']' { out.print(q : ); }; fragment NOT_END : ~(']'); The most similar grammar I've found that deals with implicit endings is the gherkin ragel lexer. Ideas for solving this

[il-antlr-interest: 28028] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Marcin Rzeźnicki
2010/2/23 Edgar Espina espina.ed...@gmail.com Hi Marcin, I was thinking that already fixed the formatting issue. Could you open bugs for those two issue? I'll take a look it. Thanks for using ANTLR IDE, :D Sure Having read your announcement I upgraded ANTLR IDE in my eclipse from previous

[il-antlr-interest: 28030] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Marcin Rzeźnicki
2010/2/23 Edgar Espina espina.ed...@gmail.com About the: 'ź' letter could you check your grammar file? Think that in somewhere inside your grammar you might have this character (may be inside a comment) Thanks, edgar I checked that before - no sign of this character. I even checked in

[il-antlr-interest: 28032] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Terence Parr
On Feb 23, 2010, at 4:20 AM, Edgar Espina wrote: The railroad feature looks pretty cool, they can be optimized and exported to HTML useful for grammar documentation. Take a look at output of grammar ANTLRv3.ghttp://antlrv3ide.sourceforge.net/resources/ANTLRv3/ANTLRv3.htmlgrammar. WOW! those

[il-antlr-interest: 28033] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Edgar Espina
Hi Friedhelm, Is it correct, that the tabs for decision points is gone? (i won't need them) It's just hidden by default. Not sure how many people use it. To make it visible go to: Window Preferences ANTLR Visualization. But how can I create the railroad diagrams? There is a save button in

[il-antlr-interest: 27843] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread fridi
Hi Edgar, I'm sorry. I didnt have the latest updates of all jars and so I could not see the rail road view and the visualization options. After updating all, everything is ok. The rail road feture is so cool! best regards, Friedhelm Edgar Espina schrieb: Hi Friedhelm, Is it correct, that

[il-antlr-interest: 28034] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Edgar Espina
About the: 'ź' letter could you check your grammar file? Think that in somewhere inside your grammar you might have this character (may be inside a comment) Thanks, edgar 2010/2/23 Marcin Rzeźnicki marcin.rzezni...@gmail.com 2010/2/23 Marcin Rzeźnicki marcin.rzezni...@gmail.com

[il-antlr-interest: 27845] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Marcin Rzeźnicki
2010/2/23 Marcin Rzeźnicki marcin.rzezni...@gmail.com 2010/2/23 Edgar Espina espina.ed...@gmail.com Hi Marcin, I was thinking that already fixed the formatting issue. Could you open bugs for those two issue? I'll take a look it. Thanks for using ANTLR IDE, :D Sure Having read your

[il-antlr-interest: 28035] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread fridi
Hi Edgar, thanks for the update and the new features. I recently updates my version and exported some interpreter tree images, works well! But how can I create the railroad diagrams? Is it correct, that the tabs for decision points is gone? (i won't need them) I have some grammars using

[il-antlr-interest: 27847] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Edgar Espina
Hi Marcin, I was thinking that already fixed the formatting issue. Could you open bugs for those two issue? I'll take a look it. Thanks for using ANTLR IDE, :D 2010/2/23 Marcin Rzeźnicki marcin.rzezni...@gmail.com On Tue, Feb 23, 2010 at 1:20 PM, Edgar Espina espina.ed...@gmail.comwrote:

[il-antlr-interest: 28037] [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread joestelmach
I'm having some trouble understanding the behavior of AST rewrite rule element cardinality in certain cases. Consider the following grammar: grammar Test; options { output=AST; } tokens { GROUP; FOO; BAR; BAZ; } search : c (SPACE option)+ - ^(GROUP c option)+ ; c : C - FOO BAR ; option :

[il-antlr-interest: 28040] [antlr-interest] ANTLR IDE 2.0.0: Syntax question on '.'

2010-02-23 Thread Graham Wideman
Hi Edgar, Nice looking work on the grammar + railroad output page, as you showed here: http://antlrv3ide.sourceforge.net/resources/ANTLRv3/ANTLRv3.html#block Now the challenge is to get the railroad diagrams to wrap :-). Anyhow, I spotted something that had me puzzled. In various rules the

[il-antlr-interest: 28041] Re: [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread Terence Parr
Hi Joe, this looks like a bug to me!! yikes. You are correct that you should see only one copy of the tree returned by option for each iteration of the tree constructor in search. grr! ok, I will add a bug. Can you do me a favor and look at the generated code for - ^(GROUP c option)+?? It might

[il-antlr-interest: 28043] Re: [antlr-interest] Abstract tree parser

2010-02-23 Thread Terence Parr
You can either define abstract methods within @members and then subclass the parser or you can create a subclass of Parser with the abstract methods or concrete methods then use superClass. Also note you can create an interface for a delegate object. Ter On Feb 23, 2010, at 12:04 PM, Daniels,

[il-antlr-interest: 28045] [antlr-interest] ANTLR IDE 2.0.0 railroad diagrams

2010-02-23 Thread Graham Wideman
Edgar -- I'm really admiring the nice combination of Index, rules with railroad diagrams, and hyperlinks from diagram elements to their definitions elsewhere on the page. http://antlrv3ide.sourceforge.net/resources/ANTLRv3/ANTLRv3.html That said, as an appreciator of diagrams :-) I wonder

[il-antlr-interest: 28046] [antlr-interest] use of TreeWizard

2010-02-23 Thread Terence Parr
Hi, just a reminder in case you folks haven't used the TreeWizard that it's useful in some situations. For example, when creating the implicitly generated lexers pulled from combined grammars, I need to build lexer rules for keywords you reference in the grammar. Once I have a wizard

[il-antlr-interest: 28047] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Marcin Rzeźnicki
2010/2/23 Edgar Espina espina.ed...@gmail.com Hi Marcin, I was thinking that already fixed the formatting issue. Could you open bugs for those two issue? I'll take a look it. Thanks for using ANTLR IDE, :D 2010/2/23 Marcin Rzeźnicki marcin.rzezni...@gmail.com Hi Edgar, Forgot to tell

[il-antlr-interest: 28048] Re: [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread joestelmach
Thank you for the fast replies. Terence - I'm not sure if this will help, but here's a portion of the generated parser for rewrite rule ^( GROUP c option ) while ( stream_option.hasNext()||stream_c.hasNext() ) { // Test.g:15:26: ^( GROUP c option ) { Object root_1 =

[il-antlr-interest: 28049] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Edgar Espina
Of course they are open source!! ;). ANTLR IDE use Clapham ( https://sourceforge.net/projects/clapham/) to make the diagrams, it had have some bugs I fix all the bugs that I found (right now I'm a Clapham developer too). About the railroad exporter, it's a feature of ANTLR IDE only, we could work

[il-antlr-interest: 28051] Re: [antlr-interest] ANTLR IDE 2.0.0 railroad diagrams

2010-02-23 Thread Edgar Espina
Hi Graham, Now the challenge is to get the railroad diagrams to wrap :-). I've already working on that. The problem is were to wrap? Wouldn't the single-quoted dot just match literal dots only? Or is dot special inside single-quote strings (ie: STRING_LITERAL)? But if that was the case, then

[il-antlr-interest: 28052] Re: [antlr-interest] Abstract tree parser

2010-02-23 Thread Jim Idle
And you should pretty much always use the superClass option for any serious project. Jim -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- boun...@antlr.org] On Behalf Of Terence Parr Sent: Tuesday, February 23, 2010 12:09 PM To: Christian

[il-antlr-interest: 28053] Re: [antlr-interest] Abstract tree parser

2010-02-23 Thread Kirby Bohling
I wish that superClass option was smart about handling debug vs. non-debug, that's the one thing that annoys me any time I choose that option is that I can't integrate with most of the cool debuggers without extra work. In the land of C++ where I can use templates, it's easy to resolve that, in

[il-antlr-interest: 28054] Re: [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread joestelmach
In my particular case, a simple tree pattern rewrite is working as a temporary solution. - Joe List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are

[il-antlr-interest: 28055] Re: [antlr-interest] Multiple Lines with Implicit Endings in ANTLR

2010-02-23 Thread Ron Burk
Grammars are great for handling complex syntax. But when the definition of a token varies all over the place and there isn't much surrounding structure, the benefit of a parser generator fades, IMHO. Not sure precisely what your grammar is, but I studied the JBehave EBNF, and that's not something

[il-antlr-interest: 28056] Re: [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread Terence Parr
On Feb 23, 2010, at 1:50 PM, joestelm...@gmail.com wrote: Thank you for the fast replies. Terence - I'm not sure if this will help, but here's a portion of the generated parser for rewrite rule ^( GROUP c option ) while ( stream_option.hasNext()||stream_c.hasNext() ) { //

[il-antlr-interest: 28057] Re: [antlr-interest] Abstract tree parser

2010-02-23 Thread Gerald Rosenberg
On 2/23/2010 4:04 PM, Kirby Bohling wrote: I wish that superClass option was smart about handling debug vs. non-debug, that's the one thing that annoys me any time I choose that option is that I can't integrate with most of the cool debuggers without extra work. Curious to know what

[il-antlr-interest: 28058] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Loring Craymer
ECL is commercially friendly, and shows lots of work by the IBM lawyers to build a license for a flagship open source project done for commercial reasons. IBM's Websphere development platform is the commercial version of eclipse. --Loring - Original Message From: Terence Parr

[il-antlr-interest: 28059] Re: [antlr-interest] Abstract tree parser

2010-02-23 Thread Kirby Bohling
On Tue, Feb 23, 2010 at 6:44 PM, Gerald Rosenberg ger...@certiv.net wrote: On 2/23/2010 4:04 PM, Kirby Bohling wrote: I wish that superClass option was smart about handling debug vs. non-debug, that's the one thing that annoys me any time I choose that option is that I can't integrate with

[il-antlr-interest: 28060] Re: [antlr-interest] ANTLR IDE 2.0.0 is out!!

2010-02-23 Thread Eric Webb
I'd be interested in keeping IntelliJ plugin support in a combined ANTLRWorks / AntlrIDE solution (as it is my IDE of choice). As far as I know, it can be difficult to get SWT and Swing to play together (though I don't know specifics). Something to consider if it is important to others.

[il-antlr-interest: 28061] Re: [antlr-interest] ANTLR IDE 2.0.0 railroad diagrams

2010-02-23 Thread Graham Wideman
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups il-antlr-interest group. To post to this group, send email to

[il-antlr-interest: 28062] Re: [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread joestelmach
Ack! perhaps that I did not take into account flat trees...i'll bet that is it. To confirm this, can you change 'c' to just FOO? If that works, then I know exactly what the problem is. Yes, changing the c rule to: c : C - FOO; results in the correct AST of: (GROUP FOO BAZ)

[il-antlr-interest: 28063] Re: [antlr-interest] Multiple Lines with Implicit Endings in ANTLR

2010-02-23 Thread consiliens
On 10-02-23 05:31 PM, Ron Burk wrote: Grammars are great for handling complex syntax. But when the definition of a token varies all over the place and there isn't much surrounding structure, the benefit of a parser generator fades, IMHO. Not sure precisely what your grammar is, but I studied

[il-antlr-interest: 28065] Re: [antlr-interest] rewrite rule element cardinality

2010-02-23 Thread Terence Parr
ah ha! ok, adding bug: http://www.antlr.org/jira/browse/ANTLR-427 Ter On Feb 23, 2010, at 5:24 PM, joestelm...@gmail.com wrote: Ack! perhaps that I did not take into account flat trees...i'll bet that is it. To confirm this, can you change 'c' to just FOO? If that works, then I know

[il-antlr-interest: 28066] Re: [antlr-interest] Left-Recursion Removal Help

2010-02-23 Thread John B. Brodie
Greetings! It is really hard to know for sure how to truly answer your question without seeing a complete example of your problem (e.g. please always try to post a *smallest* yet *complete* example of your issue when asking a question). With that mealy worded excuse for my incompetence, I will