Skip to content

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

@ciez

Description

@ciez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions