Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | `yield` cannot be placed outside methods even in blocks | Nobuyoshi Nakada | 2023-10-02 | 1 | -1/+1 |
| | |||||
* | Include new node types into %printer | yui-knk | 2023-10-02 | 1 | -3/+3 |
| | |||||
* | Remove not used fields from call nodes | yui-knk | 2023-10-02 | 1 | -8/+0 |
| | |||||
* | Correctly casting node for accessing nd_args in parse.y | yui-knk | 2023-10-02 | 1 | -2/+30 |
| | |||||
* | Use rb_node_fcall_t instead of NODE | yui-knk | 2023-10-02 | 1 | -13/+15 |
| | |||||
* | Use rb_node_block_pass_t instead of NODE | yui-knk | 2023-10-01 | 1 | -8/+11 |
| | |||||
* | Use rb_node_args_t and rb_node_args_aux_t instead of NODE | yui-knk | 2023-10-01 | 1 | -44/+50 |
| | |||||
* | Use rb_node_opt_arg_t and rb_node_kw_arg_t instead of NODE | yui-knk | 2023-10-01 | 1 | -31/+36 |
| | |||||
* | Stop saving source locations unnecessarily | Nobuyoshi Nakada | 2023-09-30 | 1 | -19/+1 |
| | | | | | `node_newnode` and `parser_dispatch_delayed_token` do not use or change `ruby_sourceline`. | ||||
* | Take line number from the tracked token location | Nobuyoshi Nakada | 2023-09-30 | 1 | -4/+1 |
| | |||||
* | Remove not used fields from FOR_MASGN | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from OP_ASGN_AND, OP_ASGN_OR | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from HASH | yui-knk | 2023-09-30 | 1 | -1/+0 |
| | |||||
* | Remove not used fields from BEGIN | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from ERROR | yui-knk | 2023-09-30 | 1 | -3/+0 |
| | |||||
* | Remove not used fields from ITER, FOR | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from MODULE, SCLASS | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from ONCE | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Expand pattern_info struct into ARYPTN Node and FNDPTN Node | yui-knk | 2023-09-30 | 1 | -28/+21 |
| | |||||
* | Remove not used fields from ARYPTN, FNDPTN | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from argument nodes | yui-knk | 2023-09-30 | 1 | -10/+0 |
| | |||||
* | Remove not used fields from NTH_REF, BACK_REF | yui-knk | 2023-09-30 | 1 | -4/+0 |
| | |||||
* | Remove not used fields from ERRINFO | yui-knk | 2023-09-30 | 1 | -3/+0 |
| | |||||
* | Remove not used fields from POSTEXE | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from DEFINED | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from AND, OR | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Remove not used fields from LAMBDA | yui-knk | 2023-09-30 | 1 | -2/+0 |
| | |||||
* | Consolidate includes common to universal parser | Nobuyoshi Nakada | 2023-09-30 | 1 | -8/+3 |
| | |||||
* | Change NODE DEF_TEMP nd_cval to `struct lex_context` | yui-knk | 2023-09-29 | 1 | -11/+22 |
| | |||||
* | Merge NODE_DEF_TEMP and NODE_DEF_TEMP2 | yui-knk | 2023-09-29 | 1 | -24/+10 |
| | |||||
* | Remove not used fields from CASE, CASE2, CASE3 | yui-knk | 2023-09-29 | 1 | -3/+0 |
| | |||||
* | Remove not used fields from ALIAS, VALIAS, UNDEF | yui-knk | 2023-09-29 | 1 | -4/+0 |
| | |||||
* | Remove not used fields from DOT2, DOT3, FLIP2, FLIP3 | yui-knk | 2023-09-29 | 1 | -2/+0 |
| | |||||
* | Merge RNode_OP_ASGN2 and RNode_OP_ASGN22 | yui-knk | 2023-09-29 | 1 | -14/+3 |
| | |||||
* | Remove not used fields from SELF, NIL, TRUE, FALSE | yui-knk | 2023-09-29 | 1 | -11/+0 |
| | |||||
* | Fix `retry` in nested `rescue` blocks | Nobuyoshi Nakada | 2023-09-29 | 1 | -10/+23 |
| | | | | | | | Restore `rescue`-context from the outer context. `retry` targets the next outer block except for between `rescue` and `else` or `ensure`, otherwise, if there is no enclosing block, it should be syntax error. | ||||
* | Syntax check of `yield` in the parser | Nobuyoshi Nakada | 2023-09-28 | 1 | -4/+11 |
| | |||||
* | Jumps are possible in the top-level loop | Nobuyoshi Nakada | 2023-09-28 | 1 | -1/+2 |
| | |||||
* | Change RNode structure from union to struct | yui-knk | 2023-09-28 | 1 | -359/+1774 |
| | | | | | | | | | | | | | | | | | | | | | | | All kind of AST nodes use same struct RNode, which has u1, u2, u3 union members for holding different kind of data. This has two problems. 1. Low flexibility of data structure Some nodes, for example NODE_TRUE, don’t use u1, u2, u3. On the other hand, NODE_OP_ASGN2 needs more than three union members. However they use same structure definition, need to allocate three union members for NODE_TRUE and need to separate NODE_OP_ASGN2 into another node. This change removes the restriction so make it possible to change data structure by each node type. 2. No compile time check for union member access It’s developer’s responsibility for using correct member for each node type when it’s union. This change clarifies which node has which type of fields and enables compile time check. This commit also changes node_buffer_elem_struct buf management to handle different size data with alignment. | ||||
* | Out of place jumps are valid in `defined?` | Nobuyoshi Nakada | 2023-09-27 | 1 | -9/+13 |
| | |||||
* | Syntax check of `retry` in the parser | Nobuyoshi Nakada | 2023-09-27 | 1 | -27/+69 |
| | |||||
* | Fix error token location | Nobuyoshi Nakada | 2023-09-27 | 1 | -7/+16 |
| | |||||
* | Syntax check of block exits in the parser | Nobuyoshi Nakada | 2023-09-27 | 1 | -24/+141 |
| | |||||
* | Use named references for method/class/module definitions | Nobuyoshi Nakada | 2023-09-25 | 1 | -63/+67 |
| | |||||
* | Extract class/module context checks | Nobuyoshi Nakada | 2023-09-25 | 1 | -15/+15 |
| | |||||
* | Split the build of `RESBODY` nodes | Nobuyoshi Nakada | 2023-09-25 | 1 | -5/+11 |
| | |||||
* | Reduce stack usage in `string_content` | Nobuyoshi Nakada | 2023-09-25 | 1 | -6/+2 |
| | |||||
* | Remove `escape_Qundef` | Nobuyoshi Nakada | 2023-09-25 | 1 | -23/+22 |
| | | | | Ripper dispatcher methods always escape `Qundef` by `get_value`. | ||||
* | Name midrules in complex rules | Nobuyoshi Nakada | 2023-09-25 | 1 | -79/+78 |
| | |||||
* | Refactor to use ripper_new_yylval2 | yui-knk | 2023-09-24 | 1 | -5/+1 |
| |