prism
prism copied to clipboard
Prism Ruby parser
Resolves #2803. This PR adds error handling for missing `parser` gem in `Prism::Translation`. The `parser` gem is a required runtime dependency when using `Prism::Translation::Parser`. But it is not required for...
I found a bug when loading the "prism/translation/parser33" using rubocop with bundler. I could reproduce the same error only requiring prism abd parser33 so the problem is actually from the...
## Changes to `ruby/prism` - [ ] `TestM17N#test_regexp_usascii` - `/#{"\x80"}/` should raise syntax error - [ ] `TestRubyLiteral#test_dregexp` - `/#{"\x80"}/` should raise syntax error - [ ] `TestMixedUnicodeEscape#test_basic` - should...
It is currently impossible to use the Prism C API in C++ projects because it uses the field name `operator`, which is a reserved word in C++. This PR changes...
This splits RationalNode into RationalIntegerNode and RationalFloatNode. The shapes of the two nodes are different: RationalIntegerNode wraps a child IntegerNode. RationalFloatNode wraps two integer fields, a numerator and a denominator....
```ruby assert_equal "\x13", "\c\x33" assert_equal "\x13", "\C-\x33" assert_equal "\xB3", "\M-\x33" ``` Right now all 3 of these are failing. It looks like `\x` sequences aren't being escaped with the flags....
`CC`, `AR` and `ARFLAGS` (and also `RM` and `CXX`) are all [implicit variables in GNU `make`](https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html). * `CC` and `AR` already defaults to `cc` and `ar`, which means `CC ?=...
This is a meta-issue about the steps that need to be taken in order to become the default CRuby parser. This is not to say that it will be the...
Running https://github.com/banister/method_source 's test suite passes on ruby master but fails with `RUBYOPT=--parser=prism bundle exec rake`: ``` Failures: 1) MethodSource::CodeHelpers should not raise an error on broken lines: def\na\n(); end...