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)