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
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
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_
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
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.
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
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
--~--~-~--~---
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
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
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
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
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
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
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
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.
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'
-
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
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
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
--~--~-~--~~~---~--~~
19 matches
Mail list logo