Added lexing support for identifiers and keywords

This commit is contained in:
2019-05-19 14:26:21 +02:00
parent 8285811fb7
commit 06fe0e7c4c
9 changed files with 343 additions and 140 deletions

View File

@@ -3,11 +3,12 @@ project(PorygonLang)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(extern/Catch2)
add_library(PorygonLang 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 src/main.cpp src/main.h++ src/Parser/Lexer.cpp src/Parser/Lexer.hpp src/Parser/TokenKind.hpp src/Parser/Token.hpp src/Parser/LexerTests.cpp)
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)
add_subdirectory(extern/Catch2)
target_link_libraries(PorygonLangTests Catch2::Catch2)
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
include(CTest)