[ruby-cvs:60247] nobu:r53095 (trunk): parse.y: lex_state trace by yydebug

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Dec 13 23:46:11 JST 2015


nobu	2015-12-13 23:46:09 +0900 (Sun, 13 Dec 2015)

  New Revision: 53095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53095

  Log:
    parse.y: lex_state trace by yydebug
    
    * parse.y (trace_lex_state): trace lex_state changes if yydebug is
      set, and send the messages to rb_stdout.
    * parse.y (rb_parser_printf): store YYPRINTF messages per lines
      so that lex_state traces do not mix.
    * tool/ytab.sed: add parser argument to yy_stack_print too.

  Modified files:
    trunk/ChangeLog
    trunk/node.h
    trunk/parse.y
    trunk/test/ruby/test_rubyoptions.rb
    trunk/tool/ytab.sed


More information about the ruby-cvs mailing list