Reputation: 4641
I am trying to parse a grammar similar to this.
PER -> 'noun' | 'noun1' | 'noun2'
PERS -> PER+
This is not a valid grammar for NLTK's recursive descent parser. How do specifiy one of more repeating tokens in this grammar
Upvotes: 2
Views: 336