How to get enumerations when using Scala’s parser combinators

January 23rd, 2012

This took me a while to figure out, so I figure it’s worth sharing here. In the end it’s quite simple thanks to Parser’s ^? method, but it took me a while to figure out:

Leave a comment