You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The
simpleHello
rule inhelloDSL
grammar acceptshello
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 eitherrunHelloDSL $ begin |> hello |> name "ymzk" |> end
orrunHelloDSL $ begin |> hello |> end
.The text was updated successfully, but these errors were encountered: