develooper Front page | perl.recdescent | Postings from June 2005

want <error> on demand

Thread Next
From:
Danel, Alexander
Date:
June 1, 2005 15:52
Subject:
want <error> on demand
Message ID:
7FA4F7CEBE3D4B489176EB4F6B13C1AF57D004@MAIL02.infores.com
Greetings,

 

I'd like to be able to force an <error> condition, based upon some
checking within an action.  Forcing an "undef" result is not
satisfactory, since the parser just assumes the sub-rule failed; I want
the whole parse to halt.

 

I guess I can set a global; that seems hokey.

 

Alexander


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About