I am compiling the tutorial for C++ in VS2008. There are two undefined
types that is causing a large number of errors. I have grep'ed the
libraries for ANTLR3_BITSET_LIST and ANTLR3_CALLOC and can't find either a
typedef or a #define for either one. How might I resolve the issues?
Thanks
St
At 08:18 30/05/2009, Steve Cooper wrote:
>script: html ('' html)*;
>
>The problem is that one language will have very different token
>sets; while html might have tokens like LT, GT, and TAGNAME,
>php will have ID, SEMICOLON, etc.
>
>So should I go for a single lexer? Two lexers feeding
Can anyone offer advice about how to recognise a language with two or
more very distinct lexing modes? The sort of thing you see in a php
script, where you alternate between HTML and PHP code. Something like;
script: html ('' html)*;
The problem is that one language will have very different
And here's my solution:
subordinate[CommonTree subAST] : -> ^({$subAST});
somerule: body = subordinatebody subordinate[$body.node] ;
There we go! Just had to read the string template pages really carefully to
figure it out.
Mike
On Fri, May 29, 2009 at 10:07 AM, Mike J. Bell wrote:
> OK, I
OK, I finally figured out what my problem was...I'm not splicing an island
grammar AST into the main AST properly. Extrapolating from the island
grammar example, I made something like:
// note that a queue is required as there is delayed communication from
lexer to parser
SUBORDINATE
:'
Hello,
something related to a wildcard is missing for the C target. My grammar is:
databaseObjectName
: ^(DatabaseObject do=.) -> ^(DatabaseObjectName $do) ;
When I try to generate the C code I get the following exception:
error(10): internal error: SqlOptimizer.g :
java.lang.Il
Halo,
I'm writing a SQL grammar. I've decided to create a basic AST and then
to optimize it a little bit during the tree parsing. One of the
optimizations is to remove two consequent NOT nodes in a condition
subtree. My naive implementation is this:
condition
: ^(OR condition condi
This page was sent to you by: alizeta_ouedraogo...@voila.fr.
Dear friend, I am suffering long time pancreatic cancer,my condition is really
deteriorating and its quite obvious that I won't live more than six
months,according to my doctors.I am willing to donate the sum of
$5,000,000US,for chari