summaryrefslogtreecommitdiff
path: root/parser.h
blob: 0c860d54cc4b87053e5a0d12fde90f151e8b0088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);