Miscellaneous parser cleanup (#429)

- Give unary `-` and `not` the same precedence as in C++
- Add detail to parse error messages, and make the --trace flag also enable parser debug tracing
- Make any new shift-reduce conflicts into build errors
- Use `%precedence` rather than `%nonassoc` where possible, in order to catch more grammar bugs at build time
This commit is contained in:
Geoff Romer
2021-04-06 10:09:03 -07:00
committed by GitHub
parent 2606046477
commit e324935139
3 changed files with 30 additions and 8 deletions
-2
View File
@@ -12,8 +12,6 @@
#include "llvm/Support/CommandLine.h"
int main(int argc, char* argv[]) {
// yydebug = 1;
using llvm::cl::desc;
using llvm::cl::opt;
opt<bool> trace_option("trace", desc("Enable tracing"));