[Cuis-dev] Subtle Parser bug?
Nicolás Papagna Maldonado
nicolas.papagna at gmail.com
Mon Nov 30 04:58:47 PST 2020
Hi folks!
Hope. you're doing fine :)
I ran into this (bug?) yesterday while inspecting existing compiled methods
at Cuis University.
Looks like if you parse/compile a method that has a dot after the last
collaborator in the method signature, an additional *self* node is added to
the AST.
To reproduce it, in a workspace inspect:
Parser new
parse: 'm1: foo. ^1'
class: Object
You'll note that the string representation of the inspected MethodNode
displays:
m1: foo
*self.*
^ 1.
Is that little *self *node there for a reason, or is it just a bug?
Best,
Nico PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20201130/009ce71c/attachment.htm>
More information about the Cuis-dev
mailing list