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

create labelled parsers #41

@ylixir

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.

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