From 7c785439fca59b3801ca2a1118ae25a98d03750d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 3 Feb 2017 22:00:23 +0100 Subject: Initial --- parser.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 parser.h (limited to 'parser.h') diff --git a/parser.h b/parser.h new file mode 100644 index 0000000..0c860d5 --- /dev/null +++ b/parser.h @@ -0,0 +1,14 @@ +#pragma once + +#include "ast.h" + +using namespace std; + + +class ParseError : public runtime_error{ +public: + explicit ParseError(const string &what_arg); + explicit ParseError(const char *what_arg); +}; + +StatementList parse(const string &source,const string &filename); -- cgit v1.2.3-54-g00ecf