[ruby-cvs:61812] nobu:r54650 (trunk): refactor syntax error

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Apr 20 10:25:55 JST 2016


nobu	2016-04-20 10:25:55 +0900 (Wed, 20 Apr 2016)

  New Revision: 54650

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

  Log:
    refactor syntax error
    
    * compile.c (append_compile_error): use rb_syntax_error_append.
    * error.c (rb_syntax_error_append): append messages into a
      SyntaxError exception instance.
    * parse.y (yycompile0): make new SyntaxError instance in main
      mode, otherwize error_buffer should be a SyntaxError if error
      has occurred.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/error.c
    trunk/internal.h
    trunk/parse.y


More information about the ruby-cvs mailing list