Skip to content

Problem with README example #7

@OriRoth

Description

@OriRoth

The simpleHello rule in helloDSL grammar accepts hello with no parameters.
The HelloDSLSemantics semantics file, however, uses the pattern (SimpleHello name),
raising an error The constructor ‘SimpleHello’ should have no arguments, but has been given 1.

Changing (SimpleHello name) to (SimpleHello) solves the problem, with either
runHelloDSL $ begin |> hello |> name "ymzk" |> end or runHelloDSL $ begin |> hello |> end.

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