[il-antlr-interest: 24251] [antlr-interest] How could I store the data in objects?

2009-06-16 Thread Xiaohua Guo
Hi, I have written a grammar file in antlr to generate a parser and a lexer. I want to use them to read a .dp file, get the data from tokens and then store the data in objects. In that way I could use the data in the objects to generate a data file. Some of the data in the objects will be reused

[il-antlr-interest: 24252] Honeymoon Pics & Videos,Sexy Porn,XXX Videos

2009-06-16 Thread ammu
Honeymoon Pics & Videos,Sexy Porn,XXX Videos Honeymoon Pics & Videos,Sexy Porn,XXX Videos http://makemoney2onlines.blogspot.com http://makemoney2onlines.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[il-antlr-interest: 24253] [antlr-interest] [ANTLR C 3.1.3] Error when parsing international characters

2009-06-16 Thread Andy Grove
I have a SQL parser that is working fine with standard ASCII characters but if I try and insert data containing international characters such as: "INSERT INTO customer (username, password, title, first_name, last_name, addr_line1, addr_line2, addr_city, addr_state, country_id) VALUES (''us

[il-antlr-interest: 24254] Re: [antlr-interest] [ANTLR C 3.1.3] Error when parsing international characters

2009-06-16 Thread Andy Grove
Jim, Thanks. I've attempted to use the UCS input stream with this code: SymbolTable* SQLParser::parse(std::string sql) { std::wstring wsql(sql.begin(), sql.end()); const wchar_t *wsqlchars = wsql.c_str(); input = antlr3NewUCS2StringInPlaceStream((pANTLR3_UIN

[il-antlr-interest: 24255] [antlr-interest] ANTLR Java.g and ver.jar

2009-06-16 Thread Zachary Palmer
Hello, all! I have just downloaded the Java 1.6 grammar from the ANTLR site in hopes of performing some modifications for research purposes. I am new to ANTLR, so the customary apologies for any silly queries applies. :) My issue is that the Java.g file provided on antlr.org contains the f

[il-antlr-interest: 24256] [antlr-interest] Changing directory of tokens file

2009-06-16 Thread Damien Cassou
Hi, is it possible to pass an option to Antlr to tell him where to generate the .tokens files? Currently, they are put along with the java files. I would like to change that. Thank you -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Ja

[il-antlr-interest: 24257] [antlr-interest] stringtemplate & tree walkers

2009-06-16 Thread Arnulf Heller
hi there, are there any complex examples of tree walkers emitting stringtemplates? What I want to do is to generate C++ header and implementation files with forward declarations etc This means that names might show up in multiple places in the resulting files. here is a small example: walker:

[il-antlr-interest: 24258] Re: [antlr-interest] stringtemplate & tree walkers

2009-06-16 Thread Terence Parr
On Jun 16, 2009, at 9:59 AM, Arnulf Heller wrote: > hi there, > > are there any complex examples of tree walkers emitting > stringtemplates? The source of antlr itself :) Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antl

[il-antlr-interest: 24259] Re: [antlr-interest] CSharp2 -debug generation bug

2009-06-16 Thread Johannes Luber
> The following grammar compiles fine under ANTLR 3.1.3 except if you use > the -debug option, in which case it throws an exception during generation. > Exception trace follows. > > The culprit line is: > message: unhSegment bgmSegment segment+ linLoop untSegment -> ^(MESSAGE > unhSegment bgmSegm

[il-antlr-interest: 24260] Re: [antlr-interest] [ANTLR C 3.1.3] Error when parsing international characters

2009-06-16 Thread Jim Idle
Andy, I think your likely issues are: 1) as mentioned earlier the length you are passing in is in bytes and the stream needs number of 16 bit chars ; 2) the encoding isn't what you think it is and the 16 bit characters are whacked enough to blow your lexer. Make sure you have a catch all AN

[il-antlr-interest: 24261] Romantic Honeymoon Couple's Sexy Pics & Videos here

2009-06-16 Thread romeo
Romantic Honeymoon Couple's Sexy Pics & Videos here Romantic Honeymoon Couple's Sexy Pics & Videos here http://prabhuearnings.blogspot.com http://prabhuearnings.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[il-antlr-interest: 24262] [antlr-interest] AntLR 3 is not validating the LAST character.

2009-06-16 Thread Bharath R
Hi All I am facing an issue while parsing the last character of my input. Even if i give an invalid character at the last the parser is not throwing the exception. The below is my grammar :- // *** grammar test; globalnumber : phonedigit (NEWLINE)* ; phonedi

[il-antlr-interest: 24264] Earn money is easy.

2009-06-16 Thread jet
Earn money is easy. spent 2 hours per day, earn $1000 and above per month. * http://sathiyalps.blogspot.com * --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google