Moved Common to external git repo

Also changed namespace from LXC to PashaBibko::LXC
This commit is contained in:
Pasha Bibko
2025-08-09 21:31:36 +01:00
parent 3c638fa92b
commit a54c0ccbab
26 changed files with 135 additions and 632 deletions

View File

@@ -10,9 +10,10 @@ target_include_directories (
${CMAKE_CURRENT_SOURCE_DIR}/inc
)
# Links to the Lexer so it can use tokens as data types #
target_link_libraries(AST PUBLIC Lexer)
# Links to the all needed internal libraries #
target_link_libraries(AST PRIVATE PashaBibko-UTIL)
target_link_libraries(AST PRIVATE Lexer)
# Creates the precompiled header of the binary #
target_include_directories(AST PRIVATE ${CMAKE_SOURCE_DIR}/common)
target_precompile_headers(AST PRIVATE ${CMAKE_SOURCE_DIR}/common/LXC.h)
target_include_directories(AST PRIVATE ${CMAKE_SOURCE_DIR}/external/util)
target_precompile_headers(AST PRIVATE ${CMAKE_SOURCE_DIR}/external/util/Util.h)

View File

@@ -1,8 +1,8 @@
#pragma once
#include <LXC.h>
#include <Util.h>
namespace LXC::AST
namespace PashaBibko::LXC::AST
{
// Enum to track which node it was created as //
enum class NodeType

View File

@@ -1,11 +1,11 @@
#pragma once
#include <LXC.h>
#include <Util.h>
#include <NodeBase.h>
#include <Token.h>
namespace LXC::AST
namespace PashaBibko::LXC::AST
{
class FunctionCall final : public NodeValue
{

View File

@@ -1,8 +1,8 @@
#include <LXC.h>
#include <Util.h>
#include <NodeTypes.h>
namespace LXC::AST
namespace PashaBibko::LXC::AST
{
FunctionCall::FunctionCall (const Identifier& functionName, ValueList& arguments)
: NodeValue(NodeType::FunctionCall), m_FuncName(functionName), m_Arguments(std::move(arguments))