Compare commits

...

2 Commits

Author SHA1 Message Date
Eatswap d71ca134f2
fix: compile error under gcc 2022-12-13 19:01:30 +08:00
Eatswap 347d225794
feat: use GCC 2022-12-13 19:00:42 +08:00
5 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#include <iostream>
#include <algorithm>
#include <numeric>
#include <cmath>
#include "AST.h"

1
AST.h
View File

@ -3,6 +3,7 @@
#include <memory>
#include <variant>
#include <vector>
#include "types.h"
#include "token.h"

View File

@ -14,8 +14,8 @@ YACCFLAGS ?= -Wall --color -v -t -d -Wcounterexamples
LANG = c++
# Compile C/C++ Code
CC = clang
CXX = clang++
CC = gcc
CXX = g++
OUTPUT ?= $(PROJ).exe
COMMONFLAGS ?= -g -Wall

View File

@ -4,6 +4,7 @@
#include <memory>
#include <utility>
#include <variant>
#include <unordered_map>
#include "value.h"

View File

@ -4,6 +4,7 @@
#include <variant>
#include <cstdint>
#include <string>
#include <vector>
#include "types.h"