On Thu, Nov 26, 2015 at 12:00 PM, Cev Ing <[email protected]> wrote:
> I got the following error:
>
> "::lhs" blessing only allowed if LHS is whitespace and alphanumerics
> LHS was <create_table>
>
> Does this mean, that the use of underscores in G1 rule names is
> discouraged?
>
This is related to blessing -- LHS being used as the name of a Perl class
-- and is as documented:
::lhs
> The RHS alternative is blessed into a class whose name is based on the LHS
> of the RHS alternative. A blessing of ::lhs is not allowed for a lexeme.
> The class will be the name of the LHS with whitespace changed to an
> underscore. (As a reminder, the whitespace in symbol names will have been
> normalized, with leading and trailing whitespace removed, and all other
> whitespace sequences changed to a single ASCII space.) When a ::lhs blessing
> value applies to a rule alternative, it is a fatal error if the LHS
> contains anything other than alphanumerics and whitespace. *In
> particular, the LHS cannot already contain an underscore ("_").* The ::lhs
> blessing
> is most useful in a default pseudo-rule.
--
https://metacpan.org/pod/distribution/Marpa-R2/pod/Semantics.pod#Blessings
>
> --
> You received this message because you are subscribed to the Google Groups
> "marpa parser" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.