Skip to content

More lexers #12

@lodo1995

Description

@lodo1995

While the SliceLexer is quite fast, it requires the entire input to be loaded in memory beforehands.
On the other side, the current RangeLexer is painfully slow.

It may be useful to add a ForwardLexer, which requires its input to be at least a ForwardRange, using this information to speed up the reading process, in particular the allocation of memory.

It's also necessary to add a BufferedLexer, which takes as input an InputRange of slices. It will be very useful for buffered reads from files, having a speed comparable to the SliceLexer whenever the token is not on a buffer boundary, but not needing a huge amount of memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions