Function commit

  • commit is almost always paired with backtrackable in some way, and it is tricky to use well.

    Read this document to learn how oneOf, backtrackable, and commit work and interact with each other. It is subtle and important!

    Type Parameters

    • A

    Parameters

    • value: A

    Returns Simple.Parser<A>