It's hard to tell what that problem is without seeing your grammar.
And I'm assuming you meant "zero_or_more" or "one_or_more", not
"one_or_zero". Also, there shouldn't be a sequence if there's only
one nonterminal in your 'root' rule, it should just be
p_zero_or_more(fun foobar/2)
Is that the bug you're describing?
Sean
> To unsubscribe from this group, send email to
> neotoma-erl+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>
1> c(foobar).
{ok,foobar}
2> foobar:parse("foobarend").
[["foo","bar"],"end"]
3> foobar:parse("fooend").
{fail,{expected,{string,"bar"},{{line,1},{column,4}}}}
1> c(foobar).
{ok,foobar}
2> foobar:parse("foobarend").
[[["foo","bar"]],"end"]
3> foobar:parse("fooend").
{fail,{expected,{string,"end"},{{line,1},{column,1}}}}
Sean