Commit graph

18 commits

Author SHA1 Message Date
Kevin Newton
b04c959621 [ruby/prism] Remove various unused memsize infra
283938ed1f
2024-05-24 17:19:34 +00:00
Kevin Newton
a64f1ab688 [ruby/prism] Fix up pm_node_list_grow
7784365d3f
2024-04-03 17:34:12 -04:00
Kevin Newton
be48b733b6 [ruby/prism] Pass block exits up the tree
168f72b9fe
2024-04-03 17:34:12 -04:00
Kevin Newton
1fb11824f3 [ruby/prism] Introduce PM_NODE_LIST_FOREACH to make it easier to iterate over node lists
5d4da7c69c
2024-04-03 17:34:12 -04:00
Kevin Newton
50e9a6b7c5 [ruby/prism] Provide API for visiting in C
537947aa5c
2024-03-04 20:24:20 +00:00
Kevin Newton
3ca8b4aee0 [ruby/prism] Support -p, -n, -a, and -l command line options
959eb506ca
2024-02-27 04:22:39 +00:00
Kevin Newton
d1ce989829 [ruby/prism] Duplicated hash keys
3e10c46c14
2024-02-23 13:25:31 -05:00
Kevin Newton
b56b8ec797 [ruby/prism] Provide the ability to dump AST to JSON from C
d3a149efc5
2024-02-17 02:05:12 +00:00
Kevin Newton
690f3bbf5d [ruby/prism] Last remaining missing C comments
e327449db6
2023-11-01 13:10:29 -04:00
Kevin Newton
6b3b530cc1 [ruby/prism] Documentation for nodes
69323d3df4
2023-11-01 13:10:29 -04:00
Kevin Newton
b12c795bdc [ruby/prism] Remove unnecessary PM_EMPTY_NODE_LIST
857f72e1f4
2023-11-01 13:10:29 -04:00
Jemma Issroff
8f71a5c530 [PRISM] Move scope_node itself to CRuby, create prism_compile.h 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

0534324312
2023-10-16 21:53:11 +00:00
Matt Valentine-House
0fdee133fc [ruby/prism] Attach the ast node to the scope
So when building instruction sequences for a scope we can reference
items from the ast node that requires the scope. This is useful for for
loops, where the local variable tables from the parent scope will need
to be referenced.

426b1ca094
2023-10-09 10:16:01 +00: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
Renamed from yarp/node.h (Browse further)