aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
Commit message (Collapse)AuthorAgeFilesLines
* Drop token info for endless method definitionNobuyoshi Nakada2020-06-251-0/+23
| | | | Because it does not have closing `end`.
* AST.of needs SCRIPT_LINES__ filled with a newlineNobuyoshi Nakada2020-06-251-1/+1
|
* [ripper] fix mismatched indentations warning [Bug #16981]Nobuyoshi Nakada2020-06-241-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-NULLKazuki Tsujimoto2020-06-141-12/+8
|
* Introduce find pattern [Feature #16828]Kazuki Tsujimoto2020-06-141-10/+111
|
* push_pktbl is needed for hash pattern, not for array patternKazuki Tsujimoto2020-06-141-3/+2
|
* Extracted argument forwarding staffsNobuyoshi Nakada2020-06-131-47/+58
|
* [ripper] use Ripper DSLNobuyoshi Nakada2020-06-131-3/+3
|
* Differentiate `...` in lambda argumentsNobuyoshi Nakada2020-06-071-0/+4
|
* Add leading arguments support to arguments forwardingJeremy Evans2020-06-061-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 ruleNobuyoshi Nakada2020-06-021-25/+6
|
* Extracted `excessed_comma` to unify ripper and make the order stableNobuyoshi Nakada2020-06-011-7/+14
|
* Fixed argument forwarding in reserved word method [Bug #16854]Nobuyoshi Nakada2020-05-151-5/+2
|
* Endless method definition including `rescue` modifierNobuyoshi Nakada2020-05-141-2/+34
|
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-111-1/+1
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-111-1/+1
| | | | This shall fix compile errors.
* Bison 3.5.91 now defaults parse.error to "simple"Nobuyoshi Nakada2020-05-041-0/+1
|
* Made parentheses mandatory in endless method defitionNobuyoshi Nakada2020-04-221-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 Nakada2020-04-221-17/+3
| | | | This reverts commit 67bcac879a2e0ddfb4e7bbd7cb5e5401422de76a.
* Disallow line-continuation before R-assignNobuyoshi Nakada2020-04-151-2/+1
|
* Removed duplicate value_expr checksNobuyoshi Nakada2020-04-141-4/+0
| | | | | `arg_rhs` has the same check and is always a non-void value expression.
* Allow simple R-assign in endless defNobuyoshi Nakada2020-04-131-3/+17
|
* Relaxed of R-assign value to argNobuyoshi Nakada2020-04-121-6/+2
|
* Endless method definition [Feature #16746]Nobuyoshi Nakada2020-04-101-38/+105
|
* Rightward-assign by ASSOCNobuyoshi Nakada2020-04-101-2/+38
| | | | [Feature #15921]
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-1/+1
| | | Split ruby.h
* New macro `NEW_RIPPER` instead of `NEW_CDECL`Nobuyoshi Nakada2020-04-031-1/+2
|
* parse.y: hoisted out new_nil_atNobuyoshi Nakada2020-03-111-41/+17
| | | | new_nil_at: create NEW_NIL node with zero-width location.
* parse.y: unified kwrest and no-kwrestNobuyoshi Nakada2020-03-111-22/+14
|
* Renamed `lex_flags` as `lex_context`Nobuyoshi Nakada2020-03-051-49/+49
|
* Preserve `kwarg` flag and fix up f5c904c2a9Nobuyoshi Nakada2020-03-031-0/+2
|
* Reduced parser stack usage by merging non-result actionsNobuyoshi Nakada2020-03-021-14/+14
|
* Packed stacked bit flags into one structNobuyoshi Nakada2020-03-021-45/+51
|
* Allow newlines inside braced patternNobuyoshi Nakada2020-03-021-2/+10
|
* Allow trailing comma in hash patternKazuki Tsujimoto2020-03-011-0/+4
|
* Named `tLABEL` tokenNobuyoshi Nakada2020-02-291-1/+1
|
* Refined argument nameNobuyoshi Nakada2020-02-281-3/+3
|
* Fixed duplicated warningNobuyoshi Nakada2020-02-101-6/+0
| | | | | As `command_rhs` is always a "value expression", `command_asgn` does not need the same check.
* Do not warn CR inside string literalNobuyoshi Nakada2020-02-041-6/+8
|
* Make RATIONAL_SET_{NUM,DEN} static inline functionsKenta Murata2020-01-171-1/+1
|
* Separate numbered parameter scope in evalNobuyoshi Nakada2020-01-161-1/+1
| | | | [Feature #16432]
* Fixed the location of args node with numbered parameterNobuyoshi Nakada2020-01-161-1/+5
|
* parse.y: fix a wrong sizeof argument for ruby_sized_xfreeYusuke Endoh2020-01-051-1/+1
|
* Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__Jeremy Evans2020-01-031-24/+0
| | | | | | | | | This removes the warning that was added in 3802fb92ff8c83eed3e867db20f72c53932f542d, and switches the behavior so that the eval does not use the binding's __FILE__ and __LINE__ implicitly. Fixes [Bug #4352]
* decouple internal.h headers卜部昌平2019-12-261-11/+27
| | | | | | | | | | | | | | | | | | Saves comitters' daily life by avoid #include-ing everything from internal.h to make each file do so instead. This would significantly speed up incremental builds. We take the following inclusion order in this changeset: 1. "ruby/config.h", where _GNU_SOURCE is defined (must be the very first thing among everything). 2. RUBY_EXTCONF_H if any. 3. Standard C headers, sorted alphabetically. 4. Other system headers, maybe guarded by #ifdef 5. Everything else, sorted alphabetically. Exceptions are those win32-related headers, which tend not be self- containing (headers have inclusion order dependencies).
* Show the error line only when same as the currentNobuyoshi Nakada2019-12-251-1/+12
|
* Added `experimental` warning categoryNobuyoshi Nakada2019-12-201-1/+2
| | | | [Feature #16420]
* Hoisted out new_case3Nobuyoshi Nakada2019-12-201-4/+12
|
* Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada2019-12-201-1/+1
| | | | [Bug #16438]
* Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada2019-12-201-1/+1
| | | | [Bug #16438]