我正在尝试使用flex和bison生成Cpp(不是C)。我从GitHub(https://github.com/ezaquarii/bison-flex-cpp-example)获得了示例代码,并试图进行构建。
这是Makefile内容
all:
flex -o scanner.cpp scanner.l
bison -o parser.cpp parser.y
g++ -g main.cpp scanner.cpp parser.cpp interpreter.cpp command.cpp -o a.out
clean:
rm -rf scanner.cpp
rm -rf parser.cpp parser.hpp location.hh position.hh stack.hh
rm -rf a.out
运行命令 make 时,出现以下错误
flex -o scanner.cpp scanner.l
bison -o parser.cpp parser.y
"parser.y", line 29: junk after `%%' in definition section
Makefile:2: recipe for target 'all' failed
make: *** [all] Segmentation fault
这是我的野牛版(Linux OS)
bison --version
bison++ Version 1.21.9-1, adapted from GNU bison by coetmeur@icdc.fr
Maintained by Magnus Ekdahl <magnus@debian.org>
有人可以告诉我怎么了吗?
答案 0 :(得分:0)
我更新了野牛的版本。
pandas_gbq.gbq.GenericGBQException: Reason: 400 No matching signature for operator IN for argument types INT64 and {STRING} at [1:55]
@ user6556709,感谢您的修复。