LRParser
- Added old (non-task) parsing code, as a basis for the new parser. - Added Tree object for parse trees. - Added top-level entry point for testing.
This commit is contained in:
24
src/parser/CMakeLists.txt
Normal file
24
src/parser/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
include_directories (${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/columns
|
||||
${CMAKE_SOURCE_DIR}/src/commands
|
||||
${CMAKE_SOURCE_DIR}/src/parser
|
||||
${TASK_INCLUDE_DIRS})
|
||||
|
||||
set (parser_SRCS LRParser.cpp LRParser.h
|
||||
Parser.cpp Parser.h
|
||||
Tree.cpp Tree.h)
|
||||
|
||||
add_library (parser STATIC ${parser_SRCS})
|
||||
add_executable (parser_executable bnf.cpp)
|
||||
|
||||
target_link_libraries (parser_executable columns commands task parser ${TASK_LIBRARIES})
|
||||
|
||||
set_property (TARGET parser_executable PROPERTY OUTPUT_NAME "parser")
|
||||
|
||||
#install (TARGETS parser_executable DESTINATION ${TASK_BINDIR})
|
||||
|
||||
set (CMAKE_BUILD_TYPE debug)
|
||||
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Wall")
|
||||
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -Wall")
|
||||
Reference in New Issue
Block a user