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
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
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
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
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
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
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
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
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
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:
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
:
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
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
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,
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
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
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
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 =
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
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
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
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
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
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
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() ) {
//
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
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
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
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.
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
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)
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
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
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
34 matches
Mail list logo