-
-
Save scpchicken/c96a0353dce50c8846cd03cc44a1dcd2 to your computer and use it in GitHub Desktop.
getting `Cannot assign to a readonly variable or a value` error in TOP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar Code { | |
rule TOP { | |
. | |
} | |
} | |
grammar E { | |
rule TOP { | |
. | |
} | |
} | |
class Parse { | |
method TOP($/) { | |
say E.parse("3"); | |
} | |
} | |
Code.parse("e", actions => Parse).made |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment