[il-antlr-interest: 24610] Re: [antlr-interest] ST feature proposal

2009-07-10 Thread Graham Wideman
Gerald rightly observed that... >Given that ST tends to preserve whitespace, the least change rule >would be to preserve any whitespace immediately prior to the <\\> ... and also the whitespace preceding the <\\> is easy to see. So this indeed seems to satisfy the issue of how to specify whit

[il-antlr-interest: 24609] Re: [antlr-interest] Get code in constructor (Java target)

2009-07-10 Thread David-Sarah Hopwood
Gustaf Johansson wrote: > Hello, > > I have a global hashmap that i want to initialize in the constructor. If you declare an instance field with an initializer, or use a 'static {...}' block, Java will effectively copy that initializer or block into all constructors. For example: @parser::membe

[il-antlr-interest: 24608] Re: [antlr-interest] How to get the inner ${identifier}.text

2009-07-10 Thread Gavin Lambert
At 14:54 11/07/2009, Ha Luong wrote: >q1_1a_bk > (time_phrase)? > { > System.out.println($prep_time.text); > } > '\?'; > >time_phrase > :prep_time time; You can either use a scope or return values for this. Here's an example for using return values: q1_1a_

[il-antlr-interest: 24607] [antlr-interest] How to get the inner ${identifier}.text

2009-07-10 Thread Ha Luong
Hi all, I couldn't get the inner ${identifier}.text, and the grammar as follow: q1_1a_bk (time_phrase)? { System.out.println($prep_time.text); } '\?'; time_phrase :prep_time time; prep_time : 'trong' | 'sau'; time: ('n\\u0103m')? Decima

[il-antlr-interest: 24606] Check out my photos on Facebook

2009-07-10 Thread Mark Waite
Hi il-antlr-interest@googlegroups.com, I invited you to join Facebook a while back and wanted to remind you that once you join, we'll be able to connect online, share photos, organize groups and events, and more. Thanks, Mark To sign up for Facebook, follow the link below: http://www.facebook.

[il-antlr-interest: 24605] Re: [antlr-interest] Proper handling of newlines with gUnit???? (was: Null Pointer Exception from valid gUnit test)...

2009-07-10 Thread Gavin Lambert
At 08:28 11/07/2009, Sylvain, Gregory [USA] wrote: >I'm suspecting that it may be the way gunit is handling multiple >newlines? The grammar defines a EOL as follows: > >EOL : ( CRCRLF | CRLF | LF ) ; >fragment CRCRLF : '\r\r\n' ; >fragment CRLF : '\r\n' ; >fragment LF : '\n' ; I don't

[il-antlr-interest: 24604] Re: [antlr-interest] ST feature proposal

2009-07-10 Thread Terence Parr
Hi Guys, yep, I believe that it should consume from <\\> to the next non-whitespace character as if none of that existed. Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~-~--~---

[il-antlr-interest: 24603] [antlr-interest] Proper handling of newlines with gUnit???? (was: Null Pointer Exception from valid gUnit test)...

2009-07-10 Thread Sylvain, Gregory [USA]
Seeing that no one had a reply to my earlier query, I assume something got lost in the message or I am just being stupid. I like to assume the former :-) I have been able to unit test the lexer, but the parser is giving me problems. Like I said, I am able to run the exact same text strings

[il-antlr-interest: 24602] Re: [antlr-interest] ST feature proposal

2009-07-10 Thread Gerald Rosenberg
At 12:49 PM 7/10/2009, Graham Wideman wrote: >Hi Ter, > >At 7/10/2009 11:42 AM, Terence Parr wrote: > >Hi Graham, yep, i wonder if we need both "ignore newline" and "ignore > >newline and indentation". Actually, Ignore \n without ignoring > >whitespace doesn't make any sense because without a \n

[il-antlr-interest: 24601] Re: [antlr-interest] ST feature proposal

2009-07-10 Thread Graham Wideman
Hi Ter, At 7/10/2009 11:42 AM, Terence Parr wrote: >Hi Graham, yep, i wonder if we need both "ignore newline" and "ignore >newline and indentation". Actually, Ignore \n without ignoring >whitespace doesn't make any sense because without a \n there is no >indentation ;) >I think <\\> should

[il-antlr-interest: 24600] Re: [antlr-interest] ST feature proposal

2009-07-10 Thread Terence Parr
Hi Graham, yep, i wonder if we need both "ignore newline" and "ignore newline and indentation". Actually, Ignore \n without ignoring whitespace doesn't make any sense because without a \n there is no indentation ;) I think <\\> should work just fine and would be very helpful. Ter On Jul

[il-antlr-interest: 24599] Re: [antlr-interest] ST feature proposal

2009-07-10 Thread Terence Parr
On Jul 9, 2009, at 7:14 PM, Loring Craymer wrote: > > Hmm--could you make this "either output a \ or escape a newline" for > <\\>? The lack of a way to output a \ from ST is annoying and > escaping newlines is rather minimal functionality for a lexeme. Doesn't \ work outside of template ex

[il-antlr-interest: 24598] EARN $5000-$15000 PER MONTH WITHOUT INVESTMENT

2009-07-10 Thread rosean...@gmail.com
EARN $5000-$15000 PER MONTH WITHOUT INVESTMENT SIMPLE ONLINE SURVEYS AND EARN MORE I HAVE EARN $1000 DAILY VIEW MORE DETAILS ** http://www.AWSurveys.com/HomeMain.cfm?RefID=anusuyageetha http://www.AWSurveys.com/Ho

[il-antlr-interest: 24597] EARN $5000-$15000 PER MONTH WITHOUT INVESTMENTEARN $5000-$15000 PER MONTH WITHOUT INVESTMENT

2009-07-10 Thread rosean...@gmail.com
EARN $5000-$15000 PER MONTH WITHOUT INVESTMENT SIMPLE ONLINE SURVEYS AND EARN MORE I HAVE EARN $1000 DAILY VIEW MORE DETAILS ** http://www.AWSurveys.com/HomeMain.cfm?RefID=anusuyageetha http://www.AWSurveys.com/Ho

[il-antlr-interest: 24595] [antlr-interest] compiling from sources other than files with the C runtime (std::string)

2009-07-10 Thread Carter Cheng
Hi, I was wondering if I could get some help with a question concerning using some of the C runtime structures. I am curious how you would for example use the ANTLRxxz functions and structures to parse from something like a std::string. Thanks in advance, Carter. List: http://www.

[il-antlr-interest: 24594] Re: [antlr-interest] Type-checking and compiling a language with import constructs

2009-07-10 Thread Jeroen van Schagen
My problem is nearly solved, I just got one little problem left with tree construction. External file can now be parsed based on the import directive(s). *modules:module* -> ^( module ); module: 'module' moduleId ( imprt | site | function )* 'end' -

[il-antlr-interest: 24593] Re: [antlr-interest] Interpreter exceptions?

2009-07-10 Thread Gavin Lambert
At 08:50 10/07/2009, Natan wrote: >STRING >:'"' ( '\"' | ~('"') )* '"'; ANTLR parses backslashes as escape sequences. So you really should be using this instead: STRING : '"' ( '\\' '"' | ~'"' )* '"' ; >I am aware that the debug and interpreter trees are not the same, >and

[il-antlr-interest: 24591] [antlr-interest] Get code in constructor (Java target)

2009-07-10 Thread Gustaf Johansson
Hello, I have a global hashmap that i want to initialize in the constructor. Currently i use a null check upon usage and initalize if null, but this seems like a performance waste when the constructor could be used. I tried the @init and have checked the book but im unable to find any reference

[il-antlr-interest: 24590] Download Young couple funcking torrents,

2009-07-10 Thread stilameri
Download Young couple funcking torrents, Download your favorite Young couple funcking torrents at TorrentHub. Funcking scene Search Result for photo news video download. http://prabhuearnings.blogslpot.com http://prabhuearnings.blogslpot.com --~--~-~--~~~---~--~~