[il-antlr-interest: 23926] [antlr-interest] Unknown types

2009-05-29 Thread Steven Kibler
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

[il-antlr-interest: 23925] Re: [antlr-interest] How do you structure a two-part lexer?

2009-05-29 Thread Gavin Lambert
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

[il-antlr-interest: 23924] [antlr-interest] How do you structure a two-part lexer?

2009-05-29 Thread Steve Cooper
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

[il-antlr-interest: 23923] Re: [antlr-interest] Problem splicing island grammar subtree into main AST

2009-05-29 Thread Mike J. Bell
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

[il-antlr-interest: 23922] [antlr-interest] Problem splicing island grammar subtree into main AST

2009-05-29 Thread Mike J. Bell
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 :'

[il-antlr-interest: 23921] [antlr-interest] rewriteWildcardLabelRef.st missing for C target

2009-05-29 Thread Tomas Potrusil
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

[il-antlr-interest: 23920] [antlr-interest] double NOT removal during tree parsing?

2009-05-29 Thread Tomas Potrusil
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

[il-antlr-interest: 23919] NYTimes.com: The New York Times in Print for May 29, 2009

2009-05-29 Thread alizeta_ouedraogo001
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