Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ripper: fix `#tok` on some error events [Bug 17345] | Nobuhiro IMAI | 2020-12-19 | 1 | -4/+9 |
| | | | | sorting alias target by event arity, and setup suitable `Elem` for error. | ||||
* | Ripper: Refined error callbacks [Bug #17345] | Nobuyoshi Nakada | 2020-12-15 | 1 | -2/+2 |
| | |||||
* | ripper: return pushed new token instead of the token list | Nobuyoshi Nakada | 2020-12-15 | 1 | -1/+3 |
| | |||||
* | Store all kinds of syntax errors [Bug #17345] | Nobuyoshi Nakada | 2020-11-26 | 1 | -1/+3 |
| | |||||
* | [DOC] Ripper.{lex,tokenize} now always return full tokens. [ci skip] | Nobuhiro IMAI | 2020-11-20 | 1 | -4/+2 |
| | |||||
* | [Feature #17276] Moved raise_errors support to Ripper::Lexer#parse | Nobuyoshi Nakada | 2020-11-20 | 1 | -35/+19 |
| | |||||
* | Ripper.{lex,tokenize} return full tokens even if syntax error | Nobuhiro IMAI | 2020-11-20 | 1 | -0/+8 |
| | | | | yet another implements [Feature #17276] | ||||
* | Update documentation for Ripper.{lex,tokenize,sexp,sexp_raw} [ci skip] | Jeremy Evans | 2020-11-17 | 2 | -0/+17 |
| | |||||
* | Support raise_errors keyword for Ripper.{lex,tokenize,sexp,sexp_raw} | Jeremy Evans | 2020-11-17 | 2 | -8/+43 |
| | | | Implements [Feature #17276] | ||||
* | 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) | ||||
* | Introduce Ractor mechanism for parallel execution | Koichi Sasada | 2020-09-03 | 1 | -14/+15 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | sed -i '/rmodule.h/d' | 卜部昌平 | 2020-08-27 | 1 | -1/+0 |
| | |||||
* | sed -i '/r_cast.h/d' | 卜部昌平 | 2020-08-27 | 1 | -1/+0 |
| | |||||
* | sed -i '\,2/extern.h,d' | 卜部昌平 | 2020-08-27 | 1 | -1/+0 |
| | |||||
* | Allow references to $$ in Ripper DSL | Nobuyoshi Nakada | 2020-05-29 | 1 | -0/+3 |
| | |||||
* | sed -i 's|ruby/impl|ruby/internal|' | 卜部昌平 | 2020-05-11 | 1 | -140/+140 |
| | | | | To fix build failures. | ||||
* | sed -i s|ruby/3|ruby/impl|g | 卜部昌平 | 2020-05-11 | 1 | -140/+140 |
| | | | | This shall fix compile errors. | ||||
* | Suppress warnings by gcc 10.1.0-RC-20200430 | Nobuyoshi Nakada | 2020-05-04 | 1 | -1/+9 |
| | | | | | | | | | | | | | | | | | | | | | | * Folding results should not be empty. If `OnigCodePointCount(to->n)` were 0, `for` loop using `fn` wouldn't execute and `ncs` elements are not initialized. ``` enc/unicode.c:557:21: warning: 'ncs[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] 557 | for (i = 0; i < ncs[0]; i++) { | ~~~^~~ ``` * Cast to `enum yytokentype` Additional enums for scanner events by ripper are not included in `yytokentype`. ``` ripper.y:7274:28: warning: implicit conversion from 'enum <anonymous>' to 'enum yytokentype' [-Wenum-conversion] ``` | ||||
* | Merge pull request #2991 from shyouhei/ruby.h | 卜部昌平 | 2020-04-08 | 1 | -1/+152 |
| | | | Split ruby.h | ||||
* | Workaround for bison provided by scoop on mswin environment | Hiroshi SHIBATA | 2020-02-15 | 1 | -0/+1 |
| | |||||
* | Get rid of use of special variables | Jeremy Evans | 2020-01-20 | 1 | -6/+6 |
| | | | | | Use `"\n"` and `IO#fileno` instead of `$/` and `$.` respectively. [Feature #14240] | ||||
* | Update dependencies in makefiles again | Kazuhiro NISHIYAMA | 2020-01-17 | 1 | -0/+1 |
| | | | | patch from https://travis-ci.org/ruby/ruby/jobs/638231960 | ||||
* | Updated dependencies on internal/warnings.h | Nobuyoshi Nakada | 2019-12-31 | 1 | -0/+1 |
| | | | | | Needed for `UNALIGNED_MEMBER_ACCESS` using `COMPILER_WARNING_`* macros. | ||||
* | update dependencies | 卜部昌平 | 2019-12-26 | 1 | -0/+28 |
| | |||||
* | Allow `$10` and more in the Ripper DSL | Nobuyoshi Nakada | 2019-11-26 | 1 | -7/+4 |
| | |||||
* | Update dependencies | Nobuyoshi Nakada | 2019-11-18 | 1 | -1/+0 |
| | |||||
* | Update comment of Ripper.lex | Yuichiro Kaneko | 2019-11-13 | 1 | -10/+10 |
| | | | | This is follow up of 1f7cb4bee9. | ||||
* | Revert "Method reference operator" | Nobuyoshi Nakada | 2019-11-12 | 1 | -1/+0 |
| | | | | | This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275] | ||||
* | Remove unneeded exec bits from some files | David Rodríguez | 2019-11-09 | 4 | -0/+0 |
| | | | | | | | | | | | | | I noticed that some files in rubygems were executable, and I could think of no reason why they should be. In general, I think ruby files should never have the executable bit set unless they include a shebang, so I run the following command over the whole repo: ```bash find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \; ``` | ||||
* | Suppress unused variable warning | Nobuyoshi Nakada | 2019-11-07 | 1 | -1/+1 |
| | |||||
* | * expand tabs. [ci skip] | git | 2019-10-21 | 1 | -155/+155 |
| | | | | | Tabs were expanded because previously the file did not have any tab indentation. Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook. | ||||
* | Look up event ID offsets by token as index | Nobuyoshi Nakada | 2019-10-21 | 1 | -168/+164 |
| | |||||
* | Also BDOT2 and BDOT3 are operators | Nobuyoshi Nakada | 2019-10-20 | 1 | -0/+2 |
| | |||||
* | Extend Ripper DSL to set to pseudo variables other than `$$` | Nobuyoshi Nakada | 2019-10-19 | 1 | -4/+6 |
| | |||||
* | Changed numbered parameter prefix | Nobuyoshi Nakada | 2019-09-24 | 1 | -3/+0 |
| | |||||
* | [DOC] Update output of Ripper.sexp [ci skip] | Kazuhiro NISHIYAMA | 2019-09-07 | 1 | -1/+1 |
| | |||||
* | Revert "Add pipeline operator [Feature #15799]" | Nobuyoshi Nakada | 2019-08-29 | 1 | -1/+0 |
| | | | | | | | | | | | | | This reverts commits: * d365fd5a024254d7c105a62a015a7ea29ccf3e5d * d780c3662484d6072b3a6945b840049de72c2096 * aa7211836b769231a2a8ef6b6ec2fd0ec882ef29 * 043f010c28e82ea38978bf8ed885416f133b5b75 * bb4dd7c6af05c7821d572e2592ea3d0cc748d81f * 043f010c28e82ea38978bf8ed885416f133b5b75 * f169043d81524b5b529f2c1e9c35437ba5bc3a7a http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/94645 | ||||
* | ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push` | Yusuke Endoh | 2019-08-07 | 1 | -1/+1 |
| | | | | instead of <<. All the other callsites use `push`. | ||||
* | ext/ripper/lib/ripper/lexer.rb: fix a wrong delegation | Yusuke Endoh | 2019-08-07 | 1 | -1/+1 |
| | | | | The target method name is a typo. | ||||
* | Include ruby/assert.h in ruby/ruby.h so that assertions can be there | Nobuyoshi Nakada | 2019-07-14 | 1 | -0/+1 |
| | |||||
* | Show the parser states in pretty_print too | Nobuyoshi Nakada | 2019-06-27 | 1 | -0/+2 |
| | |||||
* | Support Bison 3 in ripper | Nobuyoshi Nakada | 2019-06-17 | 1 | -0/+1 |
| | |||||
* | Prefer `enum yytokentype` to int | Nobuyoshi Nakada | 2019-06-15 | 1 | -2/+2 |
| | |||||
* | Add pipeline operator [Feature #15799] | Nobuyoshi Nakada | 2019-06-13 | 1 | -0/+1 |
| | |||||
* | Ripper::Lexer: fallback parse error token to the previous one | Nobuyoshi Nakada | 2019-06-12 | 1 | -1/+11 |
| | |||||
* | Include stack elements left after errors | Nobuyoshi Nakada | 2019-05-30 | 1 | -1/+1 |
| | |||||
* | ripper: Ripper::Lexer#scan | Nobuyoshi Nakada | 2019-05-29 | 1 | -4/+29 |
| | | | | | | * ext/ripper/lib/ripper/lexer.rb (Ripper::Lexer#scan): parses the code and returns the result elements including errors. [EXPERIMENTAL] | ||||
* | Fix typos in Ripper::Lexer#inspect and Ripper::Lexer#pretty_print | Nobuyoshi Nakada | 2019-05-28 | 1 | -2/+2 |
| | |||||
* | Added #inspect and #pretty_inspect to Ripper::Lexer::Elem | Nobuyoshi Nakada | 2019-05-27 | 1 | -1/+16 |
| | |||||
* | Ripper: no documents of fallback methods | Nobuyoshi Nakada | 2019-05-22 | 1 | -0/+2 |
| |