simplified includes

This commit is contained in:
bronku 2025-11-21 10:47:06 +01:00
parent c01fbb784a
commit 17bac919c6
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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()

View file

@ -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

View file

@ -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