Bisonc++ - 详细报告 return 冲突规则?
Bisonc++ - Verbose reporting to return conflicting rules?
我对 bisonc++ 的编译器有一个大问题:错误消息是垃圾。我真的很难找到问题所在,因为它只写 Line 63: 2 Reduce/Reduce conflict(s)
(第 63 行是代码的最后一行)。有没有办法,一个开关或任何东西让 bisonc++ 也 return 导致冲突的规则?任何详细的错误报告?谢谢!
根据 bisonc++ man pages,您可以请求使用 -V 开关写入 .output 文件的详细输出。
- --verbose (-V)
Writes a file containing verbose descriptions of the parser states and what is done for each type of look-ahead token in
that state. This file also describes all conflicts detected in the
grammar, both those resolved by operator precedence and those that
remain unresolved. It is not created by default, but if requested the
information is written on .output, where is the
grammar specification file passed to bisonc++
我对 bisonc++ 的编译器有一个大问题:错误消息是垃圾。我真的很难找到问题所在,因为它只写 Line 63: 2 Reduce/Reduce conflict(s)
(第 63 行是代码的最后一行)。有没有办法,一个开关或任何东西让 bisonc++ 也 return 导致冲突的规则?任何详细的错误报告?谢谢!
根据 bisonc++ man pages,您可以请求使用 -V 开关写入 .output 文件的详细输出。
- --verbose (-V)
Writes a file containing verbose descriptions of the parser states and what is done for each type of look-ahead token in that state. This file also describes all conflicts detected in the grammar, both those resolved by operator precedence and those that remain unresolved. It is not created by default, but if requested the information is written on .output, where is the grammar specification file passed to bisonc++