parser: add initial parser for control verbs

This more reliably handles control verbs like (*UTF8) that can only
happen at the start of the pattern, and allows them in any ordering.
This commit is contained in:
Justin Viiret
2017-01-12 12:35:54 +11:00
committed by Matthew Barr
parent d43e9d838f
commit 1875d55cf1
6 changed files with 208 additions and 24 deletions

View File

@@ -459,6 +459,13 @@ set_source_files_properties(
ragelmaker(src/parser/Parser.rl)
set_source_files_properties(
${CMAKE_BINARY_DIR}/src/parser/control_verbs.cpp
PROPERTIES
COMPILE_FLAGS "${RAGEL_C_FLAGS}")
ragelmaker(src/parser/control_verbs.rl)
SET(hs_HEADERS
src/hs.h
src/hs_common.h
@@ -891,6 +898,8 @@ SET (hs_SRCS
src/parser/buildstate.h
src/parser/check_refs.cpp
src/parser/check_refs.h
src/parser/control_verbs.cpp
src/parser/control_verbs.h
src/parser/parse_error.cpp
src/parser/parse_error.h
src/parser/parser_util.cpp