Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix public interface | Koichi Sasada | 2020-11-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | To make some kind of Ractor related extensions, some functions should be exposed. * include/ruby/thread_native.h * rb_native_mutex_* * rb_native_cond_* * include/ruby/ractor.h * RB_OBJ_SHAREABLE_P(obj) * rb_ractor_shareable_p(obj) * rb_ractor_std*() * rb_cRactor and rm ractor_pub.h and rename srcdir/ractor.h to srcdir/ractor_core.h (to avoid conflict with include/ruby/ractor.h) | ||||
* | Use more specific warning for ambiguous slash | Jeremy Evans | 2020-11-15 | 1 | -1/+6 |
| | | | | Fixes [Bug #17124] | ||||
* | ripper: Invalid pragma value warning | Nobuyoshi Nakada | 2020-11-02 | 1 | -1/+1 |
| | |||||
* | Compare boolean values for parser pragma locale-insensitively | Nobuyoshi Nakada | 2020-11-02 | 1 | -2/+2 |
| | |||||
* | Change NODE layout for pattern matching | Kazuki Tsujimoto | 2020-11-01 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | I prefer pconst to be the first element of NODE. Before: | ARYPTN | FNDPTN | HSHPTN ---+--------+--------+----------- u1 | imemo | imemo | pkwargs u2 | pconst | pconst | pconst u3 | apinfo | fpinfo | pkwrestarg After: | ARYPTN | FNDPTN | HSHPTN ---+--------+--------+----------- u1 | pconst | pconst | pconst u2 | imemo | imemo | pkwargs u3 | apinfo | fpinfo | pkwrestarg | ||||
* | Pattern matching is no longer experimental | Kazuki Tsujimoto | 2020-11-01 | 1 | -13/+9 |
| | |||||
* | Allow non-argument endless-def with a space instead of parentheses | Nobuyoshi Nakada | 2020-10-26 | 1 | -5/+8 |
| | |||||
* | Assoc pattern matching (#3703) | Nobuyoshi Nakada | 2020-10-26 | 1 | -34/+3 |
| | | | | | [Feature #17260] One-line pattern matching using tASSOC R-assignment is rejected instead. | ||||
* | Prohibit setter method names in all kinds of endless methods | Nobuyoshi Nakada | 2020-10-12 | 1 | -3/+16 |
| | | | | Also unwrap NODE_RIPPER to check the method name. | ||||
* | Refactored lex_context management | Nobuyoshi Nakada | 2020-10-09 | 1 | -8/+8 |
| | | | | | Save and restore `lex_context` as-is wholely, and save in `k_class` and `k_module` to workaround look-ahead reading. | ||||
* | Unfreeze string-literal-only interpolated string-literal | Nobuyoshi Nakada | 2020-09-30 | 1 | -12/+29 |
| | | | | [Feature #17104] | ||||
* | Introduce Ractor mechanism for parallel execution | Koichi Sasada | 2020-09-03 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | This commit introduces Ractor mechanism to run Ruby program in parallel. See doc/ractor.md for more details about Ractor. See ticket [Feature #17100] to see the implementation details and discussions. [Feature #17100] This commit does not complete the implementation. You can find many bugs on using Ractor. Also the specification will be changed so that this feature is experimental. You will see a warning when you make the first Ractor with `Ractor.new`. I hope this feature can help programmers from thread-safety issues. | ||||
* | new_dstr: hoisted out from literal_concat and evstr2dstr | Nobuyoshi Nakada | 2020-09-02 | 1 | -6/+12 |
| | |||||
* | Prohibit setter method names in endless method definition | Yusuke Endoh | 2020-08-31 | 1 | -0/+3 |
| | | | | https://bugs.ruby-lang.org/issues/16746#note-26 | ||||
* | Fixed error messages at non-ascii %string terminator | Nobuyoshi Nakada | 2020-08-26 | 1 | -0/+6 |
| | |||||
* | Removed a never-true condition | Nobuyoshi Nakada | 2020-08-26 | 1 | -1/+1 |
| | |||||
* | rb_{ary,fnd}_pattern_info: Remove imemo member to reduce memory usage | Kazuki Tsujimoto | 2020-08-02 | 1 | -35/+13 |
| | | | | | | | | | | | | | | | | | | | | | | This is a partial revert commit of 8f096226e1b76f95f4d853d3dea2bc75eeeb5244. NODE layout: Before: | ARYPTN | FNDPTN | HSHPTN ---+--------+--------+----------- u1 | pconst | pconst | pconst u2 | unused | unused | pkwargs u3 | apinfo | fpinfo | pkwrestarg After: | ARYPTN | FNDPTN | HSHPTN ---+--------+--------+----------- u1 | imemo | imemo | pkwargs u2 | pconst | pconst | pconst u3 | apinfo | fpinfo | pkwrestarg | ||||
* | Use a linked list to eliminate imemo tmp bufs for managing local tables | Aaron Patterson | 2020-07-27 | 1 | -10/+2 |
| | | | | | | | This patch changes local table memory to be managed by a linked list rather than via the garbage collector. It reduces allocations from the GC and also fixes a use-after-free bug in the concurrent-with-sweep compactor I'm working on. | ||||
* | Switch reserved for numbered parameter warning to SyntaxError | Jeremy Evans | 2020-07-22 | 1 | -2/+2 |
| | |||||
* | Drop token info for endless method definition | Nobuyoshi Nakada | 2020-06-25 | 1 | -0/+23 |
| | | | | Because it does not have closing `end`. | ||||
* | AST.of needs SCRIPT_LINES__ filled with a newline | Nobuyoshi Nakada | 2020-06-25 | 1 | -1/+1 |
| | |||||
* | [ripper] fix mismatched indentations warning [Bug #16981] | Nobuyoshi Nakada | 2020-06-24 | 1 | -4/+5 |
| | | | | | The scanner location has to be set from `lex.ptok` before it is flushed by dispatching the scanner event. | ||||
* | apinfo/fpinfo should always be non-NULL | Kazuki Tsujimoto | 2020-06-14 | 1 | -12/+8 |
| | |||||
* | Introduce find pattern [Feature #16828] | Kazuki Tsujimoto | 2020-06-14 | 1 | -10/+111 |
| | |||||
* | push_pktbl is needed for hash pattern, not for array pattern | Kazuki Tsujimoto | 2020-06-14 | 1 | -3/+2 |
| | |||||
* | Extracted argument forwarding staffs | Nobuyoshi Nakada | 2020-06-13 | 1 | -47/+58 |
| | |||||
* | [ripper] use Ripper DSL | Nobuyoshi Nakada | 2020-06-13 | 1 | -3/+3 |
| | |||||
* | Differentiate `...` in lambda arguments | Nobuyoshi Nakada | 2020-06-07 | 1 | -0/+4 |
| | |||||
* | Add leading arguments support to arguments forwarding | Jeremy Evans | 2020-06-06 | 1 | -0/+41 |
| | | | | | | | | The idFWD_KWREST sections may be wrong. However, the existing idFWD_KWREST sections for ... without leading arguments are already broken. Implements [Feature #16378] | ||||
* | Include the entire lambda expression in lambda rule | Nobuyoshi Nakada | 2020-06-02 | 1 | -25/+6 |
| | |||||
* | Extracted `excessed_comma` to unify ripper and make the order stable | Nobuyoshi Nakada | 2020-06-01 | 1 | -7/+14 |
| | |||||
* | Fixed argument forwarding in reserved word method [Bug #16854] | Nobuyoshi Nakada | 2020-05-15 | 1 | -5/+2 |
| | |||||
* | Endless method definition including `rescue` modifier | Nobuyoshi Nakada | 2020-05-14 | 1 | -2/+34 |
| | |||||
* | sed -i 's|ruby/impl|ruby/internal|' | 卜部昌平 | 2020-05-11 | 1 | -1/+1 |
| | | | | To fix build failures. | ||||
* | sed -i s|ruby/3|ruby/impl|g | 卜部昌平 | 2020-05-11 | 1 | -1/+1 |
| | | | | This shall fix compile errors. | ||||
* | Bison 3.5.91 now defaults parse.error to "simple" | Nobuyoshi Nakada | 2020-05-04 | 1 | -0/+1 |
| | |||||
* | Made parentheses mandatory in endless method defition | Nobuyoshi Nakada | 2020-04-22 | 1 | -15/+7 |
| | | | | | Even for empty argument list, not to be confusing with a writer method name. | ||||
* | Revert "Allow simple R-assign in endless def" | Nobuyoshi Nakada | 2020-04-22 | 1 | -17/+3 |
| | | | | This reverts commit 67bcac879a2e0ddfb4e7bbd7cb5e5401422de76a. | ||||
* | Disallow line-continuation before R-assign | Nobuyoshi Nakada | 2020-04-15 | 1 | -2/+1 |
| | |||||
* | Removed duplicate value_expr checks | Nobuyoshi Nakada | 2020-04-14 | 1 | -4/+0 |
| | | | | | `arg_rhs` has the same check and is always a non-void value expression. | ||||
* | Allow simple R-assign in endless def | Nobuyoshi Nakada | 2020-04-13 | 1 | -3/+17 |
| | |||||
* | Relaxed of R-assign value to arg | Nobuyoshi Nakada | 2020-04-12 | 1 | -6/+2 |
| | |||||
* | Endless method definition [Feature #16746] | Nobuyoshi Nakada | 2020-04-10 | 1 | -38/+105 |
| | |||||
* | Rightward-assign by ASSOC | Nobuyoshi Nakada | 2020-04-10 | 1 | -2/+38 |
| | | | | [Feature #15921] | ||||
* | Merge pull request #2991 from shyouhei/ruby.h | 卜部昌平 | 2020-04-08 | 1 | -1/+1 |
| | | | Split ruby.h | ||||
* | New macro `NEW_RIPPER` instead of `NEW_CDECL` | Nobuyoshi Nakada | 2020-04-03 | 1 | -1/+2 |
| | |||||
* | parse.y: hoisted out new_nil_at | Nobuyoshi Nakada | 2020-03-11 | 1 | -41/+17 |
| | | | | new_nil_at: create NEW_NIL node with zero-width location. | ||||
* | parse.y: unified kwrest and no-kwrest | Nobuyoshi Nakada | 2020-03-11 | 1 | -22/+14 |
| | |||||
* | Renamed `lex_flags` as `lex_context` | Nobuyoshi Nakada | 2020-03-05 | 1 | -49/+49 |
| | |||||
* | Preserve `kwarg` flag and fix up f5c904c2a9 | Nobuyoshi Nakada | 2020-03-03 | 1 | -0/+2 |
| |