diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 20e612d..2ea29ed 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -16,6 +16,10 @@ namespace Parser { const tok& token, const string& text, const bool& quoteTokenText = false ) { error(token, text, token.line, quoteTokenText); } + + IS(ParseTree) + inline T parse(const input_iterator auto&, const input_iterator auto&); + IS(ParseTree) T parse(const span&& lexed) { T parseTree; @@ -95,6 +99,8 @@ namespace Parser { } return parseTree; } + template T> + inline T parse(const input_iterator auto& begin, const input_iterator auto& end) { return parse(span(begin, end)); } } #endif //YERBACON_PARSER_HPP \ No newline at end of file