Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with README example #7

Open
OriRoth opened this issue Feb 22, 2020 · 0 comments
Open

Problem with README example #7

OriRoth opened this issue Feb 22, 2020 · 0 comments

Comments

@OriRoth
Copy link

OriRoth commented Feb 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant