pyparsing ambiguity
- by Claudiu
I'm trying to parse some text using PyParser. The problem is that I have names that can contain white spaces. So my input might look like this:
Joe
Bob
Jimmy Foo
Joe decides to eat.
Bob decides to not eat.
Jimmy Foo decides to eat.
How can I create a parser for the decides to eat line? If I create my name parser naively, meaning with alphabetic characters plus space characters, then it will match the entire line.