Skip to content
New issue

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

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

Already on GitHub? Sign in 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant