我正在尝试使用racc解析kernel config。一切都很好,直到它达到---帮助---部分。我收到了错误:
/Users/user/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/racc/parser.rb:348:in `on_error': (Racc::ParseError) parse error on value "\t Say yes to build a 64-bit kernel - formerly known as x86_64\n\t Say no to build a 32-bit kernel - formerly known as i386\n" (T_HELPTEXT) from /Users/user/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/racc/parser.rb:99:in `_racc_do_parse_c' from /Users/user/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/racc/parser.rb:99:in `do_parse' from zconf.y.racc:536:in `parse' from zconf.tab.rb:1168:in `'
试图修复它一整天,但仍然无法理解错误在哪里。你能救我吗?
Racc文件 - http://pastie.org/1194735
答案 0 :(得分:0)
我自己修复了,忘记在T_HELP之后添加T_EOL。