J-F-Liu / pom

PEG parser combinators using operator overloading without macros.
MIT License
496 stars 30 forks source link

improve example #31

Closed blakehawkins closed 5 years ago

blakehawkins commented 5 years ago

After thinking more about this, I realized that this "trick" before, using >> and get(0), is equivalent to just map.

I am investigating how to generalise this approach. I will open a separate issue.