aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-09-13 05:01:27 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-09-29 01:02:39 +0200
commit5afe363e7f48ee52fd70edea316789fcb18178dc (patch)
treee0551a8b70f9cfa3f5ff1ff5445a1c35d31aeb61
parentfe9be7d265049d60929070a4b628f42d95f56972 (diff)
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
-rw-r--r--src/openvic-dataloader/csv/Grammar.inc11
1 files changed, 9 insertions, 2 deletions
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 <lexy/callback.hpp>
#include <lexy/dsl.hpp>
-#include <lexy/dsl/delimited.hpp>
-#include <lexy/dsl/follow.hpp>
+
+#include "detail/LexyLitRange.hpp"
+
+struct ParseOptions {
+ /// @brief Seperator character
+ char SepChar;
+ /// @brief Determines whether StringValue is supported
+ bool SupportStrings;
+};
#include "detail/LexyLitRange.hpp"