Moved Common to external git repo
Also changed namespace from LXC to PashaBibko::LXC
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user