haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

parseExp (and other) not from String, but from [Token]? #450

Open jwaldmann opened 4 years ago

jwaldmann commented 4 years ago

After

lexTokenStream :: String -> ParseResult [Loc Token]

can a parser make use of this? Is there

parseExp' :: [Token] -> ...

cf. https://mail.haskell.org/pipermail/haskell-cafe/2020-April/132124.html