Skip to content

lexeme should accept an arbitrary skipper as its argument #97

Description

@saki7

Currently, when we want to alter the skipper and invoke lexeme at the same time, we must write this pattern:

constexpr auto p = skip(blank)[lexeme[some_parser]];

If we could write this way, it would be much simpler and also more understandable:

constexpr auto p = lexeme(blank)[some_parser];

Implementor's note: blank and space are currently specially treated as a builtin skipper, so the lexeme directive cannot (and should not) produce their temporary instance; we need to use the builtin handling in lexeme also.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions