egison / egison-pattern-src

Manipulating Egison patterns: abstract syntax, parser, and pretty-printer

Home Page:https://hackage.haskell.org/package/egison-pattern-src

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make ParseMode independent from Megaparsec

coord-e opened this issue · comments

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

Proposal:

  • s -> Either String n

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)