natalie-lang / natalie_parser

NatalieParser is a zero-dependency, from-scratch, hand-written recursive descent parser for the Ruby Programming Language.
MIT License
63 stars 8 forks source link

Multi-assign on prefixed variables does not work #58

Closed herwinw closed 1 year ago

herwinw commented 1 year ago

Or whatever the official term if for this kind of code:

self.year, self.month, self.day = year, month, day

This generates a parse error in Natalie, but works with Ruby.

I found this when trying to see how much of the xmlrpc gem we could use by now. https://github.com/ruby/xmlrpc/blob/9f219e462793a5da3a2e30ad892e2c4482b8100c/lib/xmlrpc/datetime.rb#L85

seven1m commented 1 year ago

Archiving this repo in favor of YARP...