Skip to content

Instantly share code, notes, and snippets.

@expipiplus1
Created December 14, 2011 05:14
Show Gist options
  • Save expipiplus1/1475367 to your computer and use it in GitHub Desktop.
Save expipiplus1/1475367 to your computer and use it in GitHub Desktop.
template <std::string literal, std::string name = literal>
class LiteralTerminal : public JoeLang::Parser::Terminal
{
public:
LiteralTerminal() = default;
virtual ~LiteralTerminal() = default;
static std::unique_ptr< LiteralTerminal< literal, name > > Parse(std::basic_string::const_iterator &stream_begin, std::string::const_iterator stream_end );
static std::string GetName();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment