aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
Commit message (Collapse)AuthorAgeFilesLines
* * parse.y (warn_balanced): do not warn for EXPR_ENDFN.nobu2010-04-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_read_escape): deny extra character escapes.nobu2010-04-271-0/+2
| | | | | | [ruby-core:27228] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (program): check void_expr when rb_parse_in_main().mame2010-04-261-3/+2
| | | | | | [ruby-dev:38717] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_get_value): escape Qundef.nobu2010-04-261-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (warn_balanced): warn according to last state.nobu2010-04-261-13/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (warn_balanced): removed false warning.nobu2010-04-221-1/+9
| | | | | | | * parse.y (parser_yylex): skip whitespaces after method name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (regexp): check each fragments. [ruby-core:27374]nobu2010-04-211-8/+70
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): reverted r27388 due to backwardnobu2010-04-211-1/+2
| | | | | | compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): warn confusing binary operators afternobu2010-04-211-2/+18
| | | | | | local variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): abandoned EXPR_VCALL.nobu2010-04-211-11/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): fix for tLPAREN_ARG.nobu2010-04-201-7/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (lex_state_e, IS_END, IS_SPCARG, parser_yylex): separatenobu2010-04-201-10/+11
| | | | | | | the state after vcall. [ruby-core:29578] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): simplified with IS_ARG and IS_END.nobu2010-04-201-5/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): reduced duplicated conditions.nobu2010-04-191-5/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (IS_END, IS_SPCARG): macros for simplification.nobu2010-04-181-19/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content): cond_stack and cmdarg_stack are VALUE.nobu2010-04-181-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): seems like a symbol-literal when spacesnobu2010-04-181-1/+2
| | | | | | are unbalanced. [ruby-core:29578] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content): preserve cond_stack and cmdarg_stack.nobu2010-04-181-8/+12
| | | | | | [ruby-core:29579] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content, etc): counts of CMDARG_PUSH and POP weremame2010-04-161-4/+6
| | | | | | inconsistent. [ruby-core:22637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern3): get rid of type-punning cast.nobu2010-03-171-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern3): prohibit Symbol with an invalid encoding.mame2010-03-161-0/+4
| | | | | | | | [ruby-core:24621] * test/ruby/test_m17n_comb.rb: modify a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (top_compstmt, top_stmts, top_stmt): prohibit BEGIN {} inmame2010-01-181-20/+69
| | | | | | | | | non-toplevel scope. [ruby-core:21657] * test/ruby/test_beginendblock.rb (test_begininclass): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dyna_pop_gen): pop dvars. [ruby-dev:39861]nobu2009-12-091-4/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (k_def): adjust the location of method definition to thenobu2009-12-041-2/+6
| | | | | | | line of def. [Bug #2427] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dyna_push_gen, dyna_pop_gen): no needs to save both ofnobu2009-12-011-27/+45
| | | | | | | args and vars. [ruby-core:26961] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dyna_push_gen): use rb_node_newnode() for ripper.nobu2009-11-301-1/+1
| | | | | | | [ruby-core:26961] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dyna_push_gen, dyna_pop_gen): adjust local vtable levelnobu2009-11-301-38/+27
| | | | | | | | for the case of syntax errors in method name or argument inside do block. [ruby-core:26961] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): suppress an extra error message afternobu2009-11-301-4/+5
| | | | | | | | numeric literal without digits. based on a patch from ujihisa . in [ruby-dev:39811]. [ruby-dev:39798] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (BEGIN): now local_push are local_pop are necessary innobu2009-11-041-4/+1
| | | | | | | ripper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * ↵kazu2009-10-261-0/+19
| | | | | | test/ripper/test_filter.rb: add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg_prepend): removed. a patch from Mikhail T. innobu2009-10-221-1/+0
| | | | | | | [ruby-core:26217]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_intern): enable literal optimization.nobu2009-10-201-7/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (method_call): dispatch symbols. a patch from Andy Keep innobu2009-10-201-4/+4
| | | | | | | [ruby-core:26169]. [ruby-core:26165] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (mlhs_basic): fixed handling splat in middle of mlhs. anobu2009-10-201-1/+2
| | | | | | | patch from Andy Keep in [ruby-core:26163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_here_document): dispatch delayed heredocnobu2009-10-201-20/+49
| | | | | | | contents. based on a patch from Andy Keep in [ruby-core:24855]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (is_special_global_name): add boundary check.akr2009-10-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): fix token even after trailing under score.akr2009-10-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern3): check symbol table overflow before generatenobu2009-10-151-1/+1
| | | | | | | next id. [ruby-core:26092] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern3): check symbol table overflow.nobu2009-10-151-0/+10
| | | | | | | [ruby-core:26092] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (token_info_push, token_info_pop): reduced ifdefs.nobu2009-10-131-33/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_magic_comment): fixed normalization.nobu2009-10-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (bv_decls, bvar): fix for block variables.nobu2009-10-031-3/+3
| | | | | | | [ruby-dev:39423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assignable_gen): parser_yyerror takes two arguments.nobu2009-10-021-8/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assignable_gen): get rid of macro collision.nobu2009-10-021-25/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID bynobu2009-10-021-148/+202
| | | | | | | | | | | | | | | NODE to track local variable assignment. * parse.y (lvar_defined_gen, assignable_gen): enable local variable check. [ruby-core:24923] * parse.y (validate): use value only. * test/ripper/test_parser_events.rb (test_local_variables): tests based on a patch from Magnus Holm in [ruby-core:25885]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokadd_string): the byte after ``\'' may be a part ofusa2009-09-281-0/+2
| | | | | | | | multibyte character, so pushback it. [ruby-list:46416] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assign_in_cond): also should warn assignment to dvar innobu2009-09-231-0/+1
| | | | | | | conditional. [ruby-dev:39363] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat()nobu2009-09-181-2/+2
| | | | | | | on op_asgn was inversed. [ruby-core:25629] [Bug #2050] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * debug.c, parse.y: fixed types.nobu2009-09-141-74/+70
| | | | | | | * node.h (nd_line): limit to int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_char_to_option_kcode): ASCII-8BIT should also delay.naruse2009-09-101-2/+7
| | | | | | | * re.c (parser_regx_options): return rb_ascii8bit_encindex on ASCII-8BIT. [ruby-dev:39300] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e