[antlr-interest] (newbie question) Rewrite rule error message

ali azimi aliaazimi at yahoo.com
Mon Jul 9 07:12:08 PDT 2007


Hi,
   
  Thank you so much in advance for reading this email.
   
  I keep getting the following error message for a rewrite rule which is mentioned below the error message. I do not know what causes it. Could you tell me what I am doing wrong?
   
  Error
  Cannot generate grammar because:
  (136):C:\Documents and Settings\...\FinalProjectSim.g:103:19:reference to rewrite element name without reference on left of ->.
   
  And the rule is:
   
  servicetypedefinition
              :(virtuality)?
              'service type'(qualifier)?servicetypename
              (formalcontextparameters)?
              (virtualityconstraint)?
              (specialisation)?end
              (validinputsignalset)?
          gatedefinition*
              entityinservice*
              (servicetypebody)?
              'endservice type'(qualifier)?servicetypename end
              
              ->^(SLIST[$lc.start](virtuality)?
              'service type'(qualifier)?servicetypename
              (formalcontextparameters)?
              (virtualityconstraint)?
              (specialisation)?end
              (validinputsignalset)?
          gatedefinition*
              entityinservice*
              (servicetypebody)?
              'endservice type'name end ^(SLIST[$lc.start](qualifier)?servicetypename))
              ;
   
  Best wishes,
  Al
   
   

       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070709/cca81b02/attachment.html 


More information about the antlr-interest mailing list