From 5afe363e7f48ee52fd70edea316789fcb18178dc Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Tue, 12 Sep 2023 23:01:27 -0400 Subject: Add ParseOptions to simplify template options Add StringValue disable option: Inlines value escapes Add strings namespace to grammars for `ParseOptions.SupportStrings = true` Add string parse handling to parse_csv via argument --- src/openvic-dataloader/csv/Grammar.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/openvic-dataloader/csv/Grammar.inc b/src/openvic-dataloader/csv/Grammar.inc index d01a72a..6dd4158 100644 --- a/src/openvic-dataloader/csv/Grammar.inc +++ b/src/openvic-dataloader/csv/Grammar.inc @@ -13,8 +13,15 @@ #include #include -#include -#include + +#include "detail/LexyLitRange.hpp" + +struct ParseOptions { + /// @brief Seperator character + char SepChar; + /// @brief Determines whether StringValue is supported + bool SupportStrings; +}; #include "detail/LexyLitRange.hpp" -- cgit v1.2.3-56-ga3b1