aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
Commit message (Collapse)AuthorAgeFilesLines
* * include/ruby/intern.h (rb_make_backtrace, rb_make_exception):nobu2010-08-141-10/+0
| | | | | | | | | used in ripper. * node.h (rb_parser_{malloc,realloc,calloc,free}): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_char_to_option_kcode): used innobu2010-08-111-2/+0
| | | | | | | | | ripper. * node.h (rb_reserved_word): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokadd_escape): no similar messages twice.nobu2010-08-081-1/+1
| | | | | | [ruby-core:31048] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (void_expr_gen): add 'possibly' to warning message.matz2010-08-051-1/+1
| | | | | | [ruby-core:31611] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c, compile.c, dir.c, file.c, iseq.c, parse.y, random.c:naruse2010-07-271-5/+5
| | | | | | | | clean unused-value warnings. * cont.c, process.c, vm_exec.h: clean cast warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (local_push_gen): disable unused variable warnings innobu2010-07-211-1/+1
| | | | | | eval. [ruby-dev:41869] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]nobu2010-07-181-3/+5
| | | | | | | | add parent member. * error.c (rb_typeddata_inherited_p): new function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (shadowing_lvar_gen): should add lvar to vars andnobu2010-06-221-0/+4
| | | | | | | used. [ruby-dev:41666] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * id.c (Init_id): add underscore name.nobu2010-06-201-4/+2
| | | | | | | * parse.y (warn_unused_var): ignore underscore name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (warn_unused_var): use same format as shadowing localnobu2010-06-201-1/+1
| | | | | | | variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (shadowing_lvar_gen): get rid of adding extra name fornobu2010-06-201-7/+54
| | | | | | | shadowing local variable. [ruby-dev:41628] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* parse.y (warn_unused_var): warn unused variables."naruse2010-06-171-54/+6
| | | | | | | This reverts commit r28339 and r28340 because they prevents test-all on boron. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: ripper needs warn_unused_var(), too.usa2010-06-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (warn_unused_var): warn unused variables.nobu2010-06-161-6/+54
| | | | | | [ruby-dev:41620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): should consider block on stack,matz2010-06-021-2/+10
| | | | | | | | | if block argument is passed. [ruby-core:30534] * parse.c (arg_concat_gen): should append to nd_head, not to nd_iter for NODE_BLOCK_PASS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokadd_utf8, parser_tokadd_string): allow NULnobu2010-05-291-15/+0
| | | | | | | | containing symbol literals, as well as String#to_sym. [ruby-dev:41447] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (warn_balanced, parser_yylex): no warnings after closingnobu2010-05-241-1/+2
| | | | | | | parens. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (warn_balanced): no warning for singleton class.nobu2010-05-231-1/+2
| | | | | | | [ruby-core:30366] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_read_escape, parser_tokadd_escape): allow a hex ormame2010-05-161-4/+0
| | | | | | | | octal encoded character after \c. This seemed to be prohibited at r13836, but its ChangeLog mentions nothing about this prohibition. So I assume this prohibition is not intended. [ruby-core:27229] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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