egison / egison-pattern-src

Manipulating Egison patterns: abstract syntax, parser, and pretty-printer
https://hackage.haskell.org/package/egison-pattern-src
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

make ParseMode independent from Megaparsec #8

Closed coord-e closed 4 years ago

coord-e commented 4 years ago

We don't want to put a restriction of parser library on users.

coord-e commented 4 years ago

Proposal:

When we attempt to parse name or expression, take a chunk as a lexical token or parenthesized range, and pass it to provided parse function. As doing so, we have to give up injecting space parser externally (supplying commentStart/commendEnd would be better)