-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate YARP (aka Prism) #1213
Commits on Sep 11, 2023
-
Get YARP building and parsing some basic calls
This works: $ rake $ bin/natalie --ast -e "p 1+2" s(:block, s(:block, s(:call, nil, :p, s(:call, s(:lit, 1), :+, s(:lit, 2))))) $ bin/natalie -e "p 1+2" 3
Configuration menu - View commit details
-
Copy full SHA for 3d38499 - Browse repository at this point
Copy the full SHA 3d38499View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8574221 - Browse repository at this point
Copy the full SHA 8574221View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e94c34 - Browse repository at this point
Copy the full SHA 0e94c34View commit details -
I was trying to get test/natalie/method_test.rb parsing (and passing), but I found a few unexpected results from YARP. I think these are bugs, which I filed here: ruby/prism#1435 ruby/prism#1436
Configuration menu - View commit details
-
Copy full SHA for 26dd097 - Browse repository at this point
Copy the full SHA 26dd097View commit details -
Configuration menu - View commit details
-
Copy full SHA for de0278c - Browse repository at this point
Copy the full SHA de0278cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ddfbc9 - Browse repository at this point
Copy the full SHA 7ddfbc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a5ac56 - Browse repository at this point
Copy the full SHA 2a5ac56View commit details -
Add some nokogiri dependencies temporarily
I'd love to find a way to avoid these dependencies. These are just for generating some sources for YARP, and are not used after that. I bet we can pre-generate YARP sources and commit to our repo...
Configuration menu - View commit details
-
Copy full SHA for 671c9e4 - Browse repository at this point
Copy the full SHA 671c9e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a24cf5 - Browse repository at this point
Copy the full SHA 5a24cf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c77c0ca - Browse repository at this point
Copy the full SHA c77c0caView commit details
Commits on Sep 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a1c634a - Browse repository at this point
Copy the full SHA a1c634aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30156a9 - Browse repository at this point
Copy the full SHA 30156a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c0aa77 - Browse repository at this point
Copy the full SHA 7c0aa77View commit details -
Revert "Add some nokogiri dependencies temporarily"
This reverts commit 671c9e4.
Configuration menu - View commit details
-
Copy full SHA for 39a5c2e - Browse repository at this point
Copy the full SHA 39a5c2eView commit details -
Store YARP generated sources in our repo
This might allow us to skip installing some gems with bundler during the build process... I need to make sure this works across platforms.
Configuration menu - View commit details
-
Copy full SHA for 3c750b8 - Browse repository at this point
Copy the full SHA 3c750b8View commit details -
Fix syntax to work with Ruby 3.0
Hash literal value omission wasn't added until 3.1 :-)
Configuration menu - View commit details
-
Copy full SHA for b8dc641 - Browse repository at this point
Copy the full SHA b8dc641View commit details
Commits on Sep 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 82453a2 - Browse repository at this point
Copy the full SHA 82453a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dc94a1 - Browse repository at this point
Copy the full SHA 2dc94a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e317ffd - Browse repository at this point
Copy the full SHA e317ffdView commit details
Commits on Sep 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 465540b - Browse repository at this point
Copy the full SHA 465540bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 924d778 - Browse repository at this point
Copy the full SHA 924d778View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10b3379 - Browse repository at this point
Copy the full SHA 10b3379View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0527d4b - Browse repository at this point
Copy the full SHA 0527d4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c898a4 - Browse repository at this point
Copy the full SHA 1c898a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95c94af - Browse repository at this point
Copy the full SHA 95c94afView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef371e6 - Browse repository at this point
Copy the full SHA ef371e6View commit details -
Don't rebuild YARP with rake clean (use clobber)
`rake clean` cleans up our own sources, but not external libraries like YARP and Onigmo. If we need to rebuild external libraries, we can use `rake clobber build`.
Configuration menu - View commit details
-
Copy full SHA for 2b82a84 - Browse repository at this point
Copy the full SHA 2b82a84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11b26d9 - Browse repository at this point
Copy the full SHA 11b26d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bf27af - Browse repository at this point
Copy the full SHA 0bf27afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bff6b2 - Browse repository at this point
Copy the full SHA 0bff6b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fab8d86 - Browse repository at this point
Copy the full SHA fab8d86View commit details -
Match interpolated string node parsing with NatalieParser
This returns a simpler node in a very specific case of "#{'str'}" which gets one spec passing that relied on that.
Configuration menu - View commit details
-
Copy full SHA for 6de002d - Browse repository at this point
Copy the full SHA 6de002dView commit details
Commits on Sep 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5278d83 - Browse repository at this point
Copy the full SHA 5278d83View commit details -
Fix bug with interpolated node extraction
We have to keep the sexp_type for symbol, regex, etc.
Configuration menu - View commit details
-
Copy full SHA for 792ddb4 - Browse repository at this point
Copy the full SHA 792ddb4View commit details -
Fix parsing of $' to match NatalieParser
For now... once the test suite is passing, it would be good to come back and remove this whole compatibility layer and have pass1.rb just consume the YARP nodes directly. Baby steps. :-)
Configuration menu - View commit details
-
Copy full SHA for fc61795 - Browse repository at this point
Copy the full SHA fc61795View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffb5f70 - Browse repository at this point
Copy the full SHA ffb5f70View commit details -
Configuration menu - View commit details
-
Copy full SHA for b250f8e - Browse repository at this point
Copy the full SHA b250f8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4910d6b - Browse repository at this point
Copy the full SHA 4910d6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bbdf23 - Browse repository at this point
Copy the full SHA 6bbdf23View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcf85e9 - Browse repository at this point
Copy the full SHA bcf85e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f66a54d - Browse repository at this point
Copy the full SHA f66a54dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c40aca - Browse repository at this point
Copy the full SHA 4c40acaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 391fa28 - Browse repository at this point
Copy the full SHA 391fa28View commit details -
Fix (kinda) parsing of regexp match write node
We don't handle the variable setting yet, but we didn't with NatalieParser either.
Configuration menu - View commit details
-
Copy full SHA for 90dd862 - Browse repository at this point
Copy the full SHA 90dd862View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0653488 - Browse repository at this point
Copy the full SHA 0653488View commit details
Commits on Sep 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5fe457c - Browse repository at this point
Copy the full SHA 5fe457cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26f2e6e - Browse repository at this point
Copy the full SHA 26f2e6eView commit details -
Raise a slightly better syntax error
I need to learn how to say something like "unexpected X, expected Y"...
Configuration menu - View commit details
-
Copy full SHA for fe5e469 - Browse repository at this point
Copy the full SHA fe5e469View commit details
Commits on Sep 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 11159b5 - Browse repository at this point
Copy the full SHA 11159b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd3714c - Browse repository at this point
Copy the full SHA cd3714cView commit details
Commits on Sep 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 92bfeb3 - Browse repository at this point
Copy the full SHA 92bfeb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e9ccf8 - Browse repository at this point
Copy the full SHA 4e9ccf8View commit details