Skip to content

Instantly share code, notes, and snippets.

@Bloodb0ne
Created March 19, 2020 13:23
Show Gist options
  • Save Bloodb0ne/955f0effcb97fbf7f5270ae94f795bdf to your computer and use it in GitHub Desktop.
Save Bloodb0ne/955f0effcb97fbf7f5270ae94f795bdf to your computer and use it in GitHub Desktop.
Parser Combinators Example
struct SampleParser {
using is_parser_type = std::true_type;
using return_type = int;
template<typename Iterator>
bool operator()(Iterator& it, Iterator end, return_type* r) const{
return true;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment