Skip to content

combine purescript-string-parsers ans purescript-parsing #69

Closed
@safareli

Description

@safareli

Not totally sure, but I think we can somehow generalize current encoding of parser such that the parser from ps-string-parsers will be an instance of it.

What I see in ps-string-parsers is that it uses different Position type which is basically a cursor in the input state. but what if we want to have same performance benefits (of not allocating new states) when we have some tokens as array, or as some structure, where moving "cursor" (position) is cheap.

We can do similar thing as Stream here to make that possible but maybe we can combine cursor based Streams and non cursor bases streams and have one parser lib.

related #62 #58

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