Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add a parameter to makeTokenParser to specify options for treating space by lexeme #131

Open
ciez opened this issue May 1, 2021 · 0 comments

Comments

@ciez
Copy link

ciez commented May 1, 2021

Sometimes space around tokens matters a lot. Take Haskell dot for example.

This proposal is to add a parameter to makeTokenParser

makeTokenParser :: (Stream s m Char)
=> GenLanguageDef s u m -> GenTokenParser s u m
{-# INLINABLE makeTokenParser #-}
makeTokenParser languageDef

which would explicitly specify lexeme options:

  • consume trailing space
  • do not consume trailing space
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant