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 example above triggers the error: 'TestParser.this.NUMBER' is not a token!, because the implicit conversion from Token -> Rule1[String] doesn't trigger and thus the macro doesn't accept the parse-rule definition. Explicitly annotating the rule S with the type Rule1[String] will get rid of the error. A smarter grammar analysis could trigger the implicit conversion manually.
The text was updated successfully, but these errors were encountered:
^^
in Rule1[_] on token (see here) so that I can writeNUMBER ^^ (_.toInt)
.Allow a single token as right hand side of a rule (see here), so that I don't have to explicitly callsingletonRule
.Rule1[_]
?
) (see here), so that I get the typedef Optional: Rule[Option[String] :: HNil] = NUMBER ?
.+
) (see here), so that I get the typedef Optional: Rule[(String :: HNil) :: Option[String :: HNil] :: HNil] = NUMBER +
.def Optional: Rule[List[String :: HNil] :: HNil] = NUMBER *
.The example above triggers the error:
'TestParser.this.NUMBER' is not a token!
, because the implicit conversion from Token -> Rule1[String] doesn't trigger and thus the macro doesn't accept the parse-rule definition. Explicitly annotating the ruleS
with the typeRule1[String]
will get rid of the error. A smarter grammar analysis could trigger the implicit conversion manually.The text was updated successfully, but these errors were encountered: