Skip to content

Restartable lexer is broken #1

@let-def

Description

@let-def

@samoht pointed me your restartable lexer let-def/ocamllex-refill#1. There is a problem with this solution: when raising the exception, you lose the local state the lexer is into, and when you resume you restart from the initial state.

This is clearly visible when using this input seq 100000 100148 | ./restartable_lexer: on my computer, number 100146 is truncated to 146.

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