simplified includes
This commit is contained in:
parent
c01fbb784a
commit
17bac919c6
4 changed files with 5 additions and 5 deletions
2
makefile
2
makefile
|
|
@ -1,5 +1,5 @@
|
||||||
CXX = g++
|
CXX = g++
|
||||||
ARGS = -std=c++17
|
ARGS = -std=c++17 -Ibuild -Isrc
|
||||||
BISON = /opt/homebrew/opt/bison/bin/bison
|
BISON = /opt/homebrew/opt/bison/bin/bison
|
||||||
FLEX = flex
|
FLEX = flex
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include "../build/parser.hpp"
|
#include "parser.hpp"
|
||||||
#include "../src/scanner.hpp"
|
#include "scanner.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
%code {
|
%code {
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "../src/scanner.hpp"
|
#include "scanner.hpp"
|
||||||
|
|
||||||
#undef yylex
|
#undef yylex
|
||||||
#define yylex scanner->lex
|
#define yylex scanner->lex
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#include <FlexLexer.h>
|
#include <FlexLexer.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../build/parser.hpp"
|
#include "parser.hpp"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class Scanner : public yyFlexLexer
|
class Scanner : public yyFlexLexer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue