Mercurial > jwe > qt-gui-with-push-parser
comparison make-log @ 12:894be158b32d
define parser as a class and eliminate some global variables
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 May 2019 17:57:20 -0400 |
parents | 0e154787183d |
children |
comparison
equal
deleted
inserted
replaced
11:b652a5528fb1 | 12:894be158b32d |
---|---|
1 bison -o parser.cpp parser.yy | 1 bison -o parser.cpp parser.yy |
2 parser.yy:1.1-3: error: syntax error, unexpected identifier | 2 g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o parser.o parser.cpp |
3 beg// Infix notation calculator. | 3 parser.yy:22:15: warning: ‘void calc::yyerror(calc::parser&, const char*)’ declared ‘static’ but never defined [-Wunused-function] |
4 ^~~ | 4 static void yyerror (calc::parser&, char const *); |
5 parser.yy:59.1-4: error: syntax error, unexpected identifier: | 5 ^~~~~~~ |
6 line : ';' | 6 parser.yy:22:15: warning: ‘void calc::yyerror(calc::parser&, const char*)’ used but never defined |
7 ^~~~ | 7 parser.yy:195:13: warning: ‘void yyerror(calc::parser&, const char*)’ defined but not used [-Wunused-function] |
8 parser.yy:68.1-3: error: syntax error, unexpected identifier: | 8 static void yyerror (calc::parser& parser, char const *msg) |
9 exp : NUM | 9 ^~~~~~~ |
10 ^~~ | 10 g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o tty-main.o tty-main.cpp |
11 parser.yy:118.3-202.0: error: syntax error, unexpected epilogue | 11 tty-main.cpp: In function ‘int calc::tty_main(int, char**)’: |
12 %% | 12 tty-main.cpp:29:61: error: cannot resolve overloaded function ‘beg_of_stmt’ based on conversion to type ‘bool’ |
13 ^ | 13 char *tmp = readline (parser::beg_of_stmt ? ">> " : ""); |
14 make: *** [Makefile:4: parser.cpp] Error 1 | 14 ^~ |
15 make: *** [calc.mk:454: tty-main.o] Error 1 |