vektah / goparsify

golang parser-combinator library
MIT License
73 stars 16 forks source link

Many and Some don't match their documentation #4

Open brandondyck opened 6 years ago

brandondyck commented 6 years ago

According to their doc comments, "Some matches one or more parsers" and "Many matches zero or more parsers"; however, they actually give minima of zero and one parsers, respectively, in their calls to manyImpl. https://github.com/vektah/goparsify/blob/3e20a3b9244aa003fcaf26a625ef48246aef55f7/combinator.go#L75-L87