blob: 8f8da828286550c29f2eb92b788c0f0149442c05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <initializer_list>
#include <string>
#include <tuple>
#include <type_traits>
#include <vector>
#include <openvic-dataloader/csv/LineObject.hpp>
#include <lexy/callback.hpp>
#include <lexy/dsl.hpp>
#include "detail/LexyLitRange.hpp"
// Grammar Definitions //
namespace ovdl::csv::grammar::windows1252 {
constexpr auto character = detail::lexydsl::make_range<0x01, 0xFF>();
constexpr auto control =
lexy::dsl::ascii::control /
lexy::dsl::lit_b<0x81> / lexy::dsl::lit_b<0x8D> / lexy::dsl::lit_b<0x8F> /
lexy::dsl::lit_b<0x90> / lexy::dsl::lit_b<0x9D>;
#include "Grammar.inc"
}
namespace ovdl::csv::grammar::utf8 {
constexpr auto character = lexy::dsl::unicode::character;
constexpr auto control = lexy::dsl::unicode::control;
#include "Grammar.inc"
}
|