apiaryio / drafter

API Blueprint Parser (C++)
https://apiblueprint.org/
MIT License
302 stars 54 forks source link

introduce pegtl based parser::mediatype #741

Closed klokane closed 5 years ago

klokane commented 5 years ago

It also replace JSON(Schema)Regex by MediaTypeMatcher

tjanc commented 5 years ago

Currently your grammar lives in src/parser. What about introducing a sub-project on root level, apib-parser, like this?

apib-parser
├── CMakeLists.txt
├── include
│   └── apib
│       └── grammar
│           └── mediatype.hpp
├── src
│   └── mediatype.cpp
└── test
    └── mediatype-test.cpp

Drafter could then depend on apib-parser.