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
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
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
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
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;
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
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
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)*;
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
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
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
'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
12 matches
Mail list logo