summaryrefslogtreecommitdiffstats
path: root/parse.y
Commit message (Collapse)AuthorAgeFilesLines
* * parse.y (dyna_pop_gen): pop dvars. [ruby-dev:39861]nobu2009-12-091-4/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@25432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_intern): enable literal optimization.nobu2009-10-201-7/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@25319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_magic_comment): fixed normalization.nobu2009-10-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@24832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Only 1 kcode effects options [ruby-core:25411]naruse2009-09-091-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_data_type_struct): constified dsize.nobu2009-09-091-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat_gen): concat body from dstr instead ofnobu2009-09-031-1/+3
| | | | | | | nd_next. [ruby-core:25284] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (fname): removed duplication.nobu2009-09-031-4/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *regparse.c (CC_DUP_WARN): use rb_compile_warn if ScanEnv has sourcenaruse2009-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | information. [ruby-dev:39105] *re.c (rb_reg_compile): add sourcefile and sourceline to the arguments. *re.c (make_regexp): ditto. *re.c (rb_reg_initialize): ditto. *re.c (rb_reg_initialize_str): ditto. *re.c (rb_reg_compile): ditto. *regcomp.c (onig_compile): ditto. *regint.h (onig_compile): ditto. *re.c (reg_compile_gen): follow above. *re.c (rb_reg_to_s): ditto. *re.c (make_regexp): ditto. *re.c (rb_reg_initialize): ditto. *re.c (rb_reg_initialize_str): ditto. *re.c (rb_reg_new_str): ditto. *re.c (rb_enc_reg_new): ditto. *re.c (rb_reg_initialize_m): ditto. *re.c (rb_reg_init_copy): ditto. *regcomp.c (onig_new): ditto. *regcomp.c (onig_compile): set sourcefile and sourceline to scan_env. *regparse.h (ScanEnv): add sourcefile and sourceline. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_enc_symname2_p): not depend on nul terminator.nobu2009-08-301-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reduce_nodes_gen): preserve NODE_FL_NEWLINE flag duringmame2009-08-201-0/+4
| | | | | | node reducing. [ruby-core:24463] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ENABLE_SELECTOR_NAMESPACE): defaulted to 0.nobu2009-08-201-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ivar2_hash_type): disabled for now.nobu2009-08-201-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string):nobu2009-08-171-15/+36
| | | | | | | must be ascii compatible. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex): should dispatch scan-event even when followsnobu2009-08-161-1/+0
| | | | | | | just after delayed-token. [ruby-dev:37855] [Bug #1071] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (fname, string_dvar, sym, dsym, f_arglist): removednobu2009-08-151-13/+7
| | | | | | | duplications. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat0): tail can be nil. [ruby-dev:38980]nobu2009-08-021-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat_gen): reduced unnecessary node at stringnobu2009-07-311-1/+7
| | | | | | | literal concatenation with empty head dstr. [ruby-dev:38968] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled asmame2009-07-301-3/+1
| | | | | | | | | | NODE_STR. [ruby-dev:38968] * bootstraptest/test_syntax.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (regexp): regexp literal at the top of dstr is still needed even ↵naruse2009-07-281-1/+1
| | | | | | if it is empty. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_iseq_t): add a new field line_no. This fieldmame2009-07-221-4/+0
| | | | | | | | | | | | | | | | represents line number from which the original code of the iseq starts. [ruby-dev:38698] * iseq.c, compile.c: ditto. * parse.y: line number hack (for Proc#source_location) is no longer needed. * test/ruby/test_settracefunc.rb: line number of set_trace_func is now compatible with 1.8's. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (compile_dstr_fragments): reduced needless literal.nobu2009-07-201-6/+6
| | | | | | | | | * parse.y (xstring, regexp, dsym, literal_concat, evstr2dstr): literal at the top of dstr is no longer needed if it is empty, since concatstrings and toregexp always create new strings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longernobu2009-07-161-1/+0
| | | | | | | used. [ruby-dev:38760] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_data_type): typed.nobu2009-07-091-16/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): fixed wrong variable.nobu2009-07-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_set_encode): show the erred file name instead ofnobu2009-06-241-2/+12
| | | | | | | the file that requires it. [ruby-core:24006] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e