[il-antlr-interest: 23002] [antlr-interest] How Do I pass a string template to the outer level

2009-04-04 Thread Paul McKee
Hi All: many levels down within my grammar I am using StringTemplate to selectively output information. When I run : TsqlWalker.sql_statement_return r2 = walker.sql_statement(); StringTemplate output = (StringTemplate)r2.getTemplate(); I get a null back for output, so the template is not getting

[il-antlr-interest: 23003] Re: [antlr-interest] selective debug code generation for maven plugin

2009-04-04 Thread Tilman Bender
Jim, I had a look at the docs again, but I am not sure I get you right. I saw the include/exclude options of the antlr plugin, but I am not sure this could help me. As I understand the documentation you can include exclude/grammars from being processed by antlr at all. So I could either genera

[il-antlr-interest: 23005] [antlr-interest] ANTLR for Adobe Flash CS3? It is possible?

2009-04-04 Thread rvkone
Hello to the community, I am a flash developer and I want to use your antlr component with Adobe Flash CS3 (nor Flash CS4 nor Flex). I have already tried to manually copy the components in the Adobe Flash CS3 components folder as: Adobe Flash CS3\en\Configuration\Components Local Settings\Appl

[il-antlr-interest: 23006] Re: [antlr-interest] ANTLR for Adobe Flash CS3? It is possible?

2009-04-04 Thread Dennis Benzinger
Hello! Am 04.04.2009 16:02, rvk...@free.fr schrieb: > Hello to the community, > > I am a flash developer and I want to use your antlr component with Adobe > Flash > CS3 (nor Flash CS4 nor Flex). > [...] ANTLR is not a ready to use component for Flash. ANTLR is a Java program that takes a (com

[il-antlr-interest: 23007] [antlr-interest] parsing ugly grammars

2009-04-04 Thread Tomasz Jastrzebski
Hello all,   Writing a parser for some ugly grammar I came across a problem I do not know how to approach. Here is a sample grammar illustrating the problem:   grammar test; program : (statement)*; statement    : RawData    | Identifier ';'    ; RawData: 'data;' ((options {greedy=false;

[il-antlr-interest: 23008] Re: [antlr-interest] parsing ugly grammars

2009-04-04 Thread Sam Harwell
There’s a big problem. You can parse this using a synpred, but it will have O(n²) complexity in the length of your input. Is there another possible terminator for the raw data? Newline maybe? With newline terminating the raw data, you’d still have O(n²) complexity in the length of the line. You

[il-antlr-interest: 23009] Re: [antlr-interest] A Simple Question on Channels

2009-04-04 Thread Andreas Stefik
Indhu, Thanks, this is very helpful. One more very related question, if you'll indulge me. The grammar you posted works great, and I think I'm close to understanding what's going on here. You define @members, which dumps a custom function into the generated parser. Inside, you get the tokens from

[il-antlr-interest: 23010] Re: [antlr-interest] parsing ugly grammars

2009-04-04 Thread Jim Idle
Tomasz Jastrzebski wrote: Hello all,   Writing a parser for some ugly grammar I came across a problem I do not know how to approach. Here is a sample grammar illustrating the problem:   grammar test; program : (statement)*;

[il-antlr-interest: 23011] Re: [antlr-interest] ANTLR for Adobe Flash CS3? It is possible?

2009-04-04 Thread Heritiana Ravaka RAMASIMPANIRY
Thanks for your answer. I I did not understand the meaning of this framework. In fact, I want to use some sort of language recognition framework (grammar,scanner,parser) that can understand a script I would define myself inside a fila as input. Like for examples: // will add a button type 1 la

[il-antlr-interest: 23013] Re: [antlr-interest] ANTLR for Adobe Flash CS3? It is possible?

2009-04-04 Thread Dennis Benzinger
Hello Heritiana! (Hope this is your first name :-) Am 04.04.2009 20:16, Heritiana Ravaka RAMASIMPANIRY schrieb: > Thanks for your answer. > > I I did not understand the meaning of this framework. > In fact, I want to use some sort of language recognition framework > (grammar,scanner,parser) tha

[il-antlr-interest: 23014] Re: [antlr-interest] ANTLR for Adobe Flash CS3? It is possible?

2009-04-04 Thread Heritiana Ravaka RAMASIMPANIRY
Hello Dennis, Yes, it is my first name. The script is composed of simple command like the example (no conditional 'if' nor 'switch case'); I never consider the use of regular expression (mostly in php) but I'm gonna check this way. Thanks again. -Message d'origine- De : Dennis Benzinger

[il-antlr-interest: 23015] Re: [antlr-interest] A Simple Question on Channels

2009-04-04 Thread Indhu Bharathi
'expression' is rule 'r' wont return a Token since it is not a lexer rule. It will instead return 'ParserRuleReturnScope' since it is a parser rule. So '$expression.stop' or '$t.stop' will give you the last token of 'expr'. You can use it like shown below: r : t=expression { newLineBeforeNextT