Fixed some includes
This commit is contained in:
@@ -5,7 +5,7 @@ project(
|
||||
LANGUAGES CXX C)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_COLOR_DIAGNOSTICS OFF)
|
||||
set(CMAKE_COLOR_DIAGNOSTICS ON)
|
||||
set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
|
||||
find_package(LLVM REQUIRED CONFIG)
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "Lexer/Token.h"
|
||||
#include "Parser/Expression.h"
|
||||
#include "Types.h"
|
||||
|
||||
class Expression;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "StatementExpression.h"
|
||||
|
||||
#include "Parser/Expression.h"
|
||||
|
||||
StatementExpression::StatementExpression(shared_ptr<Expression> expression):
|
||||
Statement(StatementKind::EXPRESSION), expression(expression) { }
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "Parser/Statement/Statement.h"
|
||||
|
||||
class Expression;
|
||||
|
||||
class StatementExpression: public Statement {
|
||||
private:
|
||||
shared_ptr<Expression> expression;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "Parser/Statement/StatementInvalid.h"
|
||||
|
||||
#include "Lexer/Token.h"
|
||||
|
||||
StatementInvalid::StatementInvalid(shared_ptr<Token> token, string message):
|
||||
Statement(StatementKind::INVALID), token(token), message(message) { }
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "Parser/Statement/Statement.h"
|
||||
|
||||
class Token;
|
||||
|
||||
class StatementInvalid: public Statement {
|
||||
private:
|
||||
shared_ptr<Token> token;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "StatementVariable.h"
|
||||
|
||||
#include "Parser/Expression.h"
|
||||
|
||||
static string valueTypeToString(ValueType valueType) {
|
||||
switch (valueType) {
|
||||
case ValueType::NONE:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "Parser/Statement/Statement.h"
|
||||
|
||||
class Expression;
|
||||
|
||||
class StatementVariable: public Statement {
|
||||
private:
|
||||
string name;
|
||||
|
||||
Reference in New Issue
Block a user