[antlr-interest] Re: !, for non contributing elements of the rule's text.

micheal_jor open.zone at virgin.net
Sun Mar 14 17:58:34 PST 2004


--- In antlr-interest at yahoogroups.com, César López Natarén
<cesar at c...> wrote:
> Hello:
> 
> I found that the '!' operator helps me for indicating that certain text
> matched on a do not have  to be included on the rule's text.
> 
> It worked great on the following rule:
> 
> '\''! (~('\'' | '\\' | '\u000A' | '\u000D' | '\u2028' | '\u2029'))*'\''!
> 
> It does not include the ' on the rule's text, but when I tried to
> apllied the same pattern to the double-quote literal:
> 
> '"'! (~('"' | '\\' | '\u000A' | '\u000D' | '\u2028' | '\u2029'))* '"'!
> 
> Antlr generate the lexer, but when I tried to compile the source code
> (*NOTE: I'm using the C# generator), I get this errors:
> 
> 
> JScriptLexer.cs(789) error CS0103: The name `_saveIndex' could not be
> found in `Microsoft.JScript.JScriptLexer'
> 
> I'm not sending the full lexer file, but if it's needed just let know.

Hiya César,

Please try the 2.7.3rc2 release on the site. You will need to apply a
fix discussed here:
    http://groups.yahoo.com/group/antlr-interest/message/10766

Cheers,

Micheal
ANTLR/C#

PS   How's your project going?. You may not have noticed but your RSS
feed seems to be dead (from your blog).

PPS  If you have tested build scripts for ANTLR/C# on Mono, I'd be
happy to incorporate them in the standard distro.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list