Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature: lookahead (?=) (?!) #11

@conartist6

Description

@conartist6

Support lookahead assertions. Given a lookahead expression and a contingent sequence, here's what has to happen:

Make a lookahead state at the engine level. It will essentially be a normal expression state of [lookahead, contingent] with a bit of special sauce in handling success and failure.

  • When lookahead succeeds it must fail the lookahead expression, causing contingent to become the best alternative
  • When lookahead fails the entire lookahead state must fail.

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