Initial commit, adds very basic Lexing

This commit is contained in:
2019-05-18 20:35:51 +02:00
commit 22e450e7e7
17 changed files with 411 additions and 0 deletions

13
CMakeLists.txt Executable file
View File

@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.13)
project(PorygonLang)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(extern/Catch2)
add_library(PorygonLang library.cpp library.h src/main.cpp src/main.h++ src/Parser/Lexer.cpp src/Parser/Lexer.hpp src/Parser/TokenKind.hpp src/Parser/Token.hpp)
add_executable(PorygonLangTests library.cpp library.h src/main.cpp src/main.h++ src/Parser/Lexer.cpp src/Parser/Lexer.hpp src/Parser/TokenKind.hpp src/Parser/Token.hpp)
target_link_libraries(PorygonLangTests Catch2::Catch2)
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
include(CTest)