Closed cppden closed 7 years ago
~> cat q.abnf quoted-pair = "\" (%x00-09 / %x0B-0C / %x0E-7F)
~> ./abnf2pegtl q.abnf struct quoted_pair : pegtl::seq< pegtl::one< '\' >, pegtl::sor< pegtl::range< 0x00, 0x09 >, pegtl::range< 0x0B, 0x0C >, pegtl::range< 0x0E, 0x7F > > > {};
Note that "\" from abnf was converted to '\' with just one backslash, i.e. malformed char.
Thanks for catching this, I guess I really need to add some unit-tests before moving it from example/ to some more official place/state :)
example/
~> cat q.abnf quoted-pair = "\" (%x00-09 / %x0B-0C / %x0E-7F)
~> ./abnf2pegtl q.abnf struct quoted_pair : pegtl::seq< pegtl::one< '\' >, pegtl::sor< pegtl::range< 0x00, 0x09 >, pegtl::range< 0x0B, 0x0C >, pegtl::range< 0x0E, 0x7F > > > {};
Note that "\" from abnf was converted to '\' with just one backslash, i.e. malformed char.