Kevin Newton
79001c8b4a
[ruby/prism] Remove error formatting, put directly in CRuby
...
https://github.com/ruby/prism/commit/53b2866487
2024-05-24 17:19:36 +00:00
Kevin Newton
b25282e618
[ruby/prism] Replace . with decimal point for strtod
...
https://github.com/ruby/prism/commit/578a4f983e
2024-04-01 19:39:33 +00:00
Kevin Newton
9b816e674a
[ruby/prism] Add option for inlining messages for error formatting
...
https://github.com/ruby/prism/commit/af0204a8ab
2024-03-27 13:03:11 -04:00
Kevin Newton
af7bf9e0d8
[ruby/prism] Provide options for reducing size
...
https://github.com/ruby/prism/commit/592128de4d
2024-03-20 17:32:03 -04:00
Kevin Newton
977012bae8
[ruby/prism] Remove restrict to fix windows 2015
...
https://github.com/ruby/prism/commit/f0a2ce1c0e
2024-03-07 21:23:18 +00:00
Kevin Newton
ec159fc8ba
[ruby/prism] Support parsing streams
...
https://github.com/ruby/prism/commit/efdc2b7222
2024-03-07 20:40:39 +00:00
Kevin Newton
d1ce989829
[ruby/prism] Duplicated hash keys
...
https://github.com/ruby/prism/commit/3e10c46c14
2024-02-23 13:25:31 -05:00
Kevin Newton
5e0589cf52
[ruby/prism] Parse float values
...
https://github.com/ruby/prism/commit/9137226a52
2024-02-22 22:42:44 -05:00
Kevin Newton
3b3def5db7
[ruby/prism] Regenerate snapshots using integer values
2024-02-22 22:42:44 -05:00
Kevin Newton
ff6ebba9de
[ruby/prism] Parse numeric values
...
https://github.com/ruby/prism/commit/a6a552411c
2024-02-22 22:42:44 -05:00
Kevin Newton
b56b8ec797
[ruby/prism] Provide the ability to dump AST to JSON from C
...
https://github.com/ruby/prism/commit/d3a149efc5
2024-02-17 02:05:12 +00:00
Kevin Newton
6f4bb638b0
[ruby/prism] Builtins
...
https://github.com/ruby/prism/commit/851f2571ff
2024-02-16 19:34:38 +00:00
Kevin Newton
ba06a8259a
[ruby/prism] Better error messages for unexpected tokens in prefix
...
https://github.com/ruby/prism/commit/a35b8e45ee
2024-01-30 16:10:08 +00:00
Kevin Newton
6ff9f1aa51
[ruby/prism] Provide ability to format errors
...
https://github.com/ruby/prism/commit/27985b0e7e
2024-01-11 18:36:32 +00:00
Kevin Newton
28ec79404a
Sync to latest prism
2024-01-02 11:34:04 -05:00
Alex Koval
36ca99b343
[ruby/prism] fix typo in docs
...
https://github.com/ruby/prism/commit/d7fbc09345
2023-12-13 12:17:57 +00:00
Kevin Newton
82f18baa21
[ruby/prism] Provide flags for changing encodings
...
https://github.com/ruby/prism/commit/e838eaff6f
2023-12-06 14:23:38 -05:00
HParker
b8b319dd1a
Revert "allow enabling Prism via flag or env var"
...
This reverts commit 9b76c7fc89
.
2023-12-06 10:21:12 +09:00
HParker
9b76c7fc89
allow enabling Prism via flag or env var
...
Enable Prism using either --prism
ruby --prism test.rb
or via env var
RUBY_PRISM=1 ruby test.rb
2023-12-05 12:17:14 -05:00
Kevin Newton
492c82cb41
[ruby/prism] Prism.parse_success?(source)
...
A lot of tools use Ripper/RubyVM::AbstractSyntaxTree to determine
if a source is valid. These tools both create an AST instead of
providing an API that will return a boolean only.
This new API only creates the C structs, but doesn't bother
reifying them into Ruby/the serialization API. Instead it only
returns true/false, which is significantly more efficient.
https://github.com/ruby/prism/commit/7014740118
2023-12-01 20:53:34 +00:00
Kevin Newton
ea409958b3
[ruby/prism] Remove ability to decode other encodings
...
https://github.com/ruby/prism/commit/98e218d989
2023-11-30 21:37:56 -05:00
Kevin Newton
aab2a6a8a3
[ruby/prism] Fix up lint
...
https://github.com/ruby/prism/commit/4f3a3e3ec1
2023-11-03 10:13:50 -04:00
Kevin Newton
8587d9a8bf
[ruby/prism] Wire up options through the Java parser
...
https://github.com/ruby/prism/commit/13fa262669
2023-11-03 10:13:50 -04:00
Kevin Newton
6496591194
[ruby/prism] Rename serialization APIs for consistency
...
https://github.com/ruby/prism/commit/5a2252e3ac
2023-11-03 10:13:49 -04:00
Kevin Newton
05f5c545d2
[ruby/prism] Wire up options through the FFI API
...
https://github.com/ruby/prism/commit/f0aa8ad93b
2023-11-03 10:13:49 -04:00
Kevin Newton
2a0f2b7763
[ruby/prism] Create an options struct for passing all of the possible options
...
https://github.com/ruby/prism/commit/99e81619de
2023-11-03 10:13:49 -04:00
Kevin Newton
3551abab06
[ruby/prism] Fix up lint
...
https://github.com/ruby/prism/commit/77d4056766
2023-11-01 13:10:29 -04:00
Kevin Newton
690f3bbf5d
[ruby/prism] Last remaining missing C comments
...
https://github.com/ruby/prism/commit/e327449db6
2023-11-01 13:10:29 -04:00
Kevin Newton
17923cc876
[ruby/prism] Even more C file documentation
...
https://github.com/ruby/prism/commit/9c648ce615
2023-11-01 13:10:29 -04:00
Kevin Newton
493439c9ce
[ruby/prism] Documentation for pm_strncasecmp
...
https://github.com/ruby/prism/commit/26934263b7
2023-11-01 13:10:29 -04:00
Kevin Newton
7bf3d9343f
[ruby/prism] parse_inline_comments -> parse_comments
...
https://github.com/ruby/prism/commit/bd4d248fd6
2023-10-30 15:53:37 +00:00
Kevin Newton
c201dbc0ad
[ruby/prism] Prism.parse_inline_comments
...
https://github.com/ruby/prism/commit/5b72f84480
2023-10-27 18:09:14 +00:00
Kevin Newton
d1bb858d47
[ruby/prism] Match existing Ruby prettyprint
...
https://github.com/ruby/prism/commit/6d8358c083
2023-10-26 15:19:43 -04:00
Jemma Issroff
0abf2d86b9
[PRISM] Move pm_scope_node_init to prism_compile.c
...
pm_scope_node_init is only used for CRuby, so should not live in the
ruby/prism repo. We will merge the changes here first so they're
not breaking, and will then remove from ruby/prism
2023-10-25 18:18:35 -03:00
Jemma Issroff
a9512e80b0
Revert "Revert "[ruby/prism] Change ScopeNode to point to previous ScopeNode""
...
This reverts commit fd87372a74
.
2023-10-18 17:16:11 -07:00
Jemma Issroff
fd87372a74
Revert "[ruby/prism] Change ScopeNode to point to previous ScopeNode"
...
This reverts commit 67a987f82b
.
2023-10-16 15:20:26 -07:00
Jemma Issroff
67a987f82b
[ruby/prism] Change ScopeNode to point to previous ScopeNode
...
Amend ScopeNode to point to previous ScopeNode, and to have void*
pointers to constants and index_lookup_table
https://github.com/ruby/prism/commit/0534324312
2023-10-16 21:53:11 +00:00
Kevin Newton
37d958eaf4
Remove old unescaping code
2023-10-13 15:31:30 -04:00
Kevin Newton
4f73a7c2f7
Sync to prism rename commits
2023-09-27 13:57:38 -04:00
Kevin Newton
8ab56869a6
Rename YARP filepaths to prism filepaths
2023-09-27 13:57:38 -04:00