[antlr-interest] [3.1 C] Mulivalue Attribute is NULL in action	after matching rule
    Christian Schladetsch 
    christian.schladetsch at gmail.com
       
    Sat Apr 12 03:23:34 PDT 2008
    
    
  
Hello,
The assertion fires on input "42" using antlr-2008-04-09.10:
grammar Fail;
options { language=C; }
@preincludes { #include <assert.h> }
sequence  : num += (NUMBER+) { assert($num != 0); } ;
NUMBER  :  ('0'..'9')+ ;
Is this correct behavior?
Regards,
Christian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080412/228bc8b5/attachment.html 
    
    
More information about the antlr-interest
mailing list