[antlr-interest] ANTLRWorks: Rule Syntax Graph - negated sets

Terence Parr parrt at cs.usfca.edu
Thu Feb 12 09:24:17 PST 2009


Sorry, but ANTLR normalizes all sets before passing to ANTLRWorks.
Ter
On Feb 12, 2009, at 5:28 AM, Paul Bouché (NSN) wrote:

> Hi,
>
> I have many lexer rules with negation, i.e.
>
> fragment Value
>     :
>     // unquoted value
>      ~('%' | Delim | '[' | '{' | '"' | '\'' | '`' ) ~('%' | Delim |  
> '}')*
>     |
>     // quoted value
>     '"' ~('%' | '\'' | '`' | '}' | ']')* '"'
>     ;
>
> The diagram produced looks a lot bigger, i.e. it collapses the  
> negated sets to positive sets (sorry for the html mail):
>
> <moz-screenshot-7.jpg>
> I want to use the diagrams for documentation purposes. The negated  
> sets are lot more plausible than the positive sets, is there a way  
> to change this behaviour, such that ANTLRWorks will display the  
> negated sets?
> I am using the latest ANTLRWorks (1.2.2).
>
> Thanks,
> Paul
> -- 
> Paul Bouché
> Voice: +49 30 590080-1284
>
> Nokia Siemens Networks GmbH & Co. KG, An den Treptowers 1, 12435  
> Berlin, Germany
> Sitz der Gesellschaft: München / Registered office: Munich
> Registergericht: München / Commercial registry: Munich, HRA 88537
> WEEE-Reg.-Nr.: DE 52984304
>
> Persönlich haftende Gesellschafterin / General Partner: Nokia  
> Siemens Networks Management GmbH
> Geschäftsleitung / Board of Directors: Lydia Sommer, Olaf Horsthemke
> Vorsitzender des Aufsichtsrats / Chairman of supervisory board:  
> Lauri Kivinen
> Sitz der Gesellschaft: München / Registered office: Munich
> Registergericht: München / Commercial registry: Munich, HRB 163416
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list