aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README8
-rw-r--r--include/lexer/lexer.hpp (renamed from include/lexer/lexer.h)2
-rw-r--r--include/lexer/token.hpp (renamed from include/lexer/token.h)2
-rw-r--r--include/lexer/token_type.hpp (renamed from include/lexer/token_type.h)0
-rw-r--r--include/parser/ast_node.hpp (renamed from include/parser/ast_node.h)2
-rw-r--r--include/parser/node_type.hpp (renamed from include/parser/node_type.h)0
-rw-r--r--include/parser/parser.hpp (renamed from include/parser/parser.h)4
-rw-r--r--include/semantic/scope.hpp (renamed from include/semantic/scope.h)0
-rw-r--r--include/semantic/semantic_analyzer.hpp (renamed from include/semantic/semantic_analyzer.h)0
-rw-r--r--include/semantic/symbol.hpp (renamed from include/semantic/symbol.h)2
-rw-r--r--include/semantic/symbol_table.hpp (renamed from include/semantic/symbol_table.h)0
-rw-r--r--include/semantic/symbol_type.hpp (renamed from include/semantic/symbol_type.h)0
-rw-r--r--src/lexer/lexer.cpp2
-rw-r--r--src/main.cpp4
-rw-r--r--src/parser/parser.cpp2
-rw-r--r--src/semantic/scope.cpp2
-rw-r--r--src/semantic/symbol.cpp2
17 files changed, 16 insertions, 16 deletions
diff --git a/README b/README
index 8a248fc..a029432 100644
--- a/README
+++ b/README
@@ -1,15 +1,15 @@
-blc
-===============
+blc - bl-compiler
+=================
Written as A-Level project, compiler for the bl-language.
Requirements
---------------
+------------
- make
Building
----------------
+--------
mkdir build
cd build
../configure
diff --git a/include/lexer/lexer.h b/include/lexer/lexer.hpp
index f24e92e..2c165b6 100644
--- a/include/lexer/lexer.h
+++ b/include/lexer/lexer.hpp
@@ -1,7 +1,7 @@
#ifndef LEXER_H
#define LEXER_H
-#include "token.h"
+#include "token.hpp"
#include <vector>
#include <string>
diff --git a/include/lexer/token.h b/include/lexer/token.hpp
index 54ac116..86a41f6 100644
--- a/include/lexer/token.h
+++ b/include/lexer/token.hpp
@@ -1,7 +1,7 @@
#ifndef TOKEN_H
#define TOKEN_H
-#include "token_type.h"
+#include "token_type.hpp"
#include <string>
diff --git a/include/lexer/token_type.h b/include/lexer/token_type.hpp
index f83c6d6..f83c6d6 100644
--- a/include/lexer/token_type.h
+++ b/include/lexer/token_type.hpp
diff --git a/include/parser/ast_node.h b/include/parser/ast_node.hpp
index 710054d..6539cf6 100644
--- a/include/parser/ast_node.h
+++ b/include/parser/ast_node.hpp
@@ -1,7 +1,7 @@
#ifndef AST_NODE_H
#define AST_NODE_H
-#include "parser/node_type.h"
+#include "node_type.hpp"
#include <string>
#include <vector>
diff --git a/include/parser/node_type.h b/include/parser/node_type.hpp
index 1766b19..1766b19 100644
--- a/include/parser/node_type.h
+++ b/include/parser/node_type.hpp
diff --git a/include/parser/parser.h b/include/parser/parser.hpp
index 3955e2e..438b8fe 100644
--- a/include/parser/parser.h
+++ b/include/parser/parser.hpp
@@ -1,8 +1,8 @@
#ifndef PARSER_H
#define PARSER_H
-#include "lexer/token.h"
-#include "parser/ast_node.h"
+#include "lexer/token.hpp"
+#include "parser/ast_node.hpp"
#include <vector>
diff --git a/include/semantic/scope.h b/include/semantic/scope.hpp
index ff20542..ff20542 100644
--- a/include/semantic/scope.h
+++ b/include/semantic/scope.hpp
diff --git a/include/semantic/semantic_analyzer.h b/include/semantic/semantic_analyzer.hpp
index 0d56599..0d56599 100644
--- a/include/semantic/semantic_analyzer.h
+++ b/include/semantic/semantic_analyzer.hpp
diff --git a/include/semantic/symbol.h b/include/semantic/symbol.hpp
index 94fe918..4bee45d 100644
--- a/include/semantic/symbol.h
+++ b/include/semantic/symbol.hpp
@@ -3,7 +3,7 @@
#include <string>
#include <vector>
-#include "symbol_type.h"
+#include "symbol_type.hpp"
class Symbol {
public:
diff --git a/include/semantic/symbol_table.h b/include/semantic/symbol_table.hpp
index b2b8270..b2b8270 100644
--- a/include/semantic/symbol_table.h
+++ b/include/semantic/symbol_table.hpp
diff --git a/include/semantic/symbol_type.h b/include/semantic/symbol_type.hpp
index a792c09..a792c09 100644
--- a/include/semantic/symbol_type.h
+++ b/include/semantic/symbol_type.hpp
diff --git a/src/lexer/lexer.cpp b/src/lexer/lexer.cpp
index 42700dd..70af4b5 100644
--- a/src/lexer/lexer.cpp
+++ b/src/lexer/lexer.cpp
@@ -1,4 +1,4 @@
-#include "lexer/lexer.h"
+#include "lexer/lexer.hpp"
Lexer::Lexer(const std::string& src) : src(src), position(0), line(1), column(1) {}
diff --git a/src/main.cpp b/src/main.cpp
index eda59a2..9a11516 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2,8 +2,8 @@
#include <sstream>
#include <fstream>
-#include "lexer/lexer.h"
-#include "parser/parser.h"
+#include "lexer/lexer.hpp"
+#include "parser/parser.hpp"
std::string tokenTypeToString(TokenType type) {
switch (type) {
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp
index 9eb94a3..97a1f27 100644
--- a/src/parser/parser.cpp
+++ b/src/parser/parser.cpp
@@ -1,6 +1,6 @@
#include <iostream>
-#include "parser/parser.h"
+#include "parser/parser.hpp"
Parser::Parser(const std::vector<Token>& tokens) : tokens_(tokens), position_(0) {}
diff --git a/src/semantic/scope.cpp b/src/semantic/scope.cpp
index 75c4e61..ba5aa41 100644
--- a/src/semantic/scope.cpp
+++ b/src/semantic/scope.cpp
@@ -1,4 +1,4 @@
-#include "semantic/scope.h"
+#include "semantic/scope.hpp"
Scope::Scope(std::string name, int level, std::unique_ptr<Scope> parent) : scope_name(name), scope_level(level), parent_scope(parent) {}
diff --git a/src/semantic/symbol.cpp b/src/semantic/symbol.cpp
index 26913f1..5142ea8 100644
--- a/src/semantic/symbol.cpp
+++ b/src/semantic/symbol.cpp
@@ -1,4 +1,4 @@
-#include "semantic/symbol.h"
+#include "semantic/symbol.hpp"
Symbol::Symbol(std::string name, SymbolType type, std::string data_type, int scope) : symbol_name(name), symbol_type(type), data_type(data_type), scope_level(scope_level) {}