Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change RNode structure from union to struct | yui-knk | 2023-09-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Directly free structure managed by imemo tmpbuf | yui-knk | 2023-09-22 | 1 | -2/+0 |
| | | | | | | | | | NODE_ARGS, NODE_ARYPTN, NODE_FNDPTN manage memory of their structure by imemo tmpbuf Object. However rb_ast_struct has reference to NODE. Then these memory can be freed directly when rb_ast_struct is freed. This commit reduces parser's dependency on CRuby functions. | ||||
* | Replace only use of `snprintf` in parser | Nobuyoshi Nakada | 2023-08-25 | 1 | -1/+0 |
| | |||||
* | Remove SCRIPT_LINES__ related member functions | Nobuyoshi Nakada | 2023-08-25 | 1 | -27/+0 |
| | |||||
* | Move SCRIPT_LINES__ away from parse.y | Nobuyoshi Nakada | 2023-08-25 | 1 | -2/+2 |
| | |||||
* | Remove uneeded fix2int and rational_raw property for Universal Parser | S-H-GAMELINKS | 2023-08-11 | 1 | -2/+0 |
| | |||||
* | Remove uneeded int2big property for Universal Parser | S-H-GAMELINKS | 2023-08-05 | 1 | -1/+0 |
| | |||||
* | Move some macro for universal parser | S-H-GAMELINKS | 2023-07-09 | 1 | -9/+0 |
| | |||||
* | Move ISASCII defination to parse.y | S-H-GAMELINKS | 2023-07-08 | 1 | -1/+0 |
| | |||||
* | Remove `st_functions_t` | Nobuyoshi Nakada | 2023-06-24 | 1 | -2/+0 |
| | |||||
* | [Feature #19719] Universal Parser | yui-knk | 2023-06-12 | 1 | -0/+983 |
Introduce Universal Parser mode for the parser. This commit includes these changes: * Introduce `UNIVERSAL_PARSER` macro. All of CRuby related functions are passed via `struct rb_parser_config_struct` when this macro is enabled. * Add CI task with 'cppflags=-DUNIVERSAL_PARSER' for ubuntu. |