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++
|
||||
ARGS = -std=c++17
|
||||
ARGS = -std=c++17 -Ibuild -Isrc
|
||||
BISON = /opt/homebrew/opt/bison/bin/bison
|
||||
FLEX = flex
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include "../build/parser.hpp"
|
||||
#include "../src/scanner.hpp"
|
||||
#include "parser.hpp"
|
||||
#include "scanner.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
%code {
|
||||
#include <iostream>
|
||||
#include "../src/scanner.hpp"
|
||||
#include "scanner.hpp"
|
||||
|
||||
#undef yylex
|
||||
#define yylex scanner->lex
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <FlexLexer.h>
|
||||
#endif
|
||||
|
||||
#include "../build/parser.hpp"
|
||||
#include "parser.hpp"
|
||||
#include <string>
|
||||
|
||||
class Scanner : public yyFlexLexer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue