Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor bug in abnf2pegtl #41

Closed
cppden opened this issue Jan 16, 2017 · 1 comment
Closed

minor bug in abnf2pegtl #41

cppden opened this issue Jan 16, 2017 · 1 comment
Assignees
Labels

Comments

@cppden
Copy link

cppden commented Jan 16, 2017

~> 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.

@d-frey
Copy link
Member

d-frey commented Jan 16, 2017

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants