Hello [EMAIL PROTECTED]!
On 08-Ott-99, you wrote:
l> Why if
l> parse "the radio" ["the" "radio"]
l> parse "the radio" ["the" "radio"]
l> parse " the radio" ["the" "radio"]
l> are all true,
l> parse " the radio " ["the" "radio"]
l> is false?
Perhaps this is a bug, but the reason is very simple. The parser
stops just after "radio", and in that last string there's one more
space; so the parser notices it didn't arrive to the
end of the string, and returns false. I think the problem can be
easily solved using ["the" "radio" ""] as rule, or if you don't
care about what's after "radio" ["the" "radio" to end].
Regards,
Gabriele.
--
o--------------------) .-^-. (----------------------------------o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ |
o--------------------) `-v-' (----------------------------------o