--- Peter van der Kamp <[EMAIL PROTECTED]> wrote: > I'm wondering why my grammar (see hereafter) accepts > > the following input: > medium='d' or medium='f' ant topic='t' > > while it should raise an error on 'ant'. > With tracing enabled you can see that it really does > > something with 'ant', except raising an error. > > my $grammar = q{ > Criteria:zoekVraag /\D/ >
I'm not sure where you're going with that /\D/ terminal but I suspect changing that to a /\z/ to match only at the end of a string might fix your problem. __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com