Bug #3624: racc でコンパイルエラー
http://redmine.ruby-lang.org/issues/show/3624

起票者: Makoto Kishimoto
ステータス: Open, 優先度: Low
カテゴリ: lib
ruby -v: ruby 1.8.7 (2009-12-24 patchlevel 248) [amd64-freebsd8]

$ cat test2.y
class Parser
rule
  yen : '\\'
end

$ racc test2.y
(boot.rb):214:in `_reduce_27': (eval):1:in `_reduce_27': compile error (SyntaxError)
(eval):1: unterminated string meets end of file
        from /usr/local/lib/ruby/site_ruby/1.8/racc/grammarfilescanner.rb:65:in `eval'
        from (boot.rb):214:in `_reduce_27'
        from /usr/local/lib/ruby/site_ruby/1.8/racc/grammarfilescanner.rb:65:in `_racc_do_parse_c'
        from /usr/local/lib/ruby/1.8/racc/parser.rb:99:in `catch'
        from /usr/local/lib/ruby/1.8/racc/parser.rb:99:in `_racc_do_parse_c'
        from /usr/local/lib/ruby/1.8/racc/parser.rb:99:in `__send__'
        from /usr/local/lib/ruby/1.8/racc/parser.rb:99:in `do_parse'
        from /usr/local/lib/ruby/site_ruby/1.8/racc/grammarfileparser.rb:38:in `parse'
        from /usr/local/lib/ruby/site_ruby/1.8/racc/compiler.rb:77:in `parse'
        from /usr/local/bin/racc:46:in `racc_main0'
        from /usr/local/bin/racc:29:in `racc_main'
        from /usr/local/bin/racc:527


----------------------------------------
http://redmine.ruby-lang.org