Re: Please Help a Defective Mental Model - still trying to make some form of an EOL work

[email protected] ((Randal L. Schwartz))
Newsgroups perl.recdescent
Organization Stonehenge Consulting Services; Portland, Oregon, USA
Message-ID <[email protected]>
>>>>> "Ken" == Ken Lacrosse <[email protected]> writes:

Ken> Why would the following grammar not parse the test case?  Note: it's
Ken> (apparently) failing on the terminating X.

Ken>                     return 1;

Don't "return 1", just make 1 the value of the block.  You're popping
out of the subrule too early.  Change this to "1;"

Ken>                     return 0;

And that to "0;"

and it works fine.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.