Skip to content

Commit 77e5696

Browse files
committed
Initial tao::pegtl grammar
1 parent 0771c8d commit 77e5696

File tree

4 files changed

+1082
-0
lines changed

4 files changed

+1082
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,20 @@ target_link_libraries(test_today
5858
todaygraphql)
5959
target_include_directories(test_today SYSTEM PUBLIC ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR})
6060

61+
62+
find_package(pegtl CONFIG REQUIRED)
63+
64+
add_library(graphqlpeg SHARED GraphQLGrammar.cpp)
65+
target_link_libraries(graphqlpeg taocpp::pegtl)
66+
6167
enable_testing()
6268
add_executable(tests tests.cpp)
6369
find_package(GTest REQUIRED)
6470
target_link_libraries(tests
6571
${CPPRESTSDK_LIB}
6672
${GRAPHQLPARSER}
6773
graphqlservice
74+
graphqlpeg
6875
todaygraphql
6976
GTest::GTest
7077
GTest::Main)

GraphQLGrammar.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "GraphQLGrammar.h"
2+

0 commit comments

Comments
 (0)