Created
March 19, 2020 13:23
-
-
Save Bloodb0ne/955f0effcb97fbf7f5270ae94f795bdf to your computer and use it in GitHub Desktop.
Parser Combinators Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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