Skip to content
This repository was archived by the owner on Jul 26, 2018. It is now read-only.

should the vars oper be added to the Prelude? #32

@odanoburu

Description

@odanoburu

considering the problem I had at #28 with the extensive use of variants in a large grammar, the oper vars was proposed as partial solution:

-- hack to get the same behaviour as from variants. parses both, linearizes the first. 
oper vars : Str -> Str -> Str = \x,y -> pre { "" => x ; _ => y } ;

it then became a definition in a module of the grammar, but I wonder if it shouldn't be in the Prelude, so that no other grammars need to repeat its definition.

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