Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

create labelled parsers #41

Description

@ylixir

we need some way to do recursive parsers, and mutually recursive parsers.

the best i've come up with is labelling a parser with label and then referencing it with use

$parser = p::label("foo",p::block(p::lit("foo"),p::lit("bar"),p::use("foo");

this parser would parse "foofoobarbar" but "foofoobar" would give an error.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions