sirthias / parboiled2

A macro-based PEG parser generator for Scala 2.10+
Other
717 stars 86 forks source link

Case insensitive `valueMap` #184

Closed alexander-myltsev closed 6 years ago

alexander-myltsev commented 6 years ago

There is a case https://gitter.im/sirthias/parboiled2?at=5a6b6ef46117191e61b80470

@sirthias , do you think it can be solved with the current armory of tools? Or do we need a PR?

sirthias commented 6 years ago

One hack could be to override __matchMap and __matchMapWrapped. But this would of course change all applications of valueMap at once.

If we want to support valueMap as well as a case-insensitive counterpart we'd need an addition to the library I'm afraid.