Module *module;
Stage *cur_stage;
std::set<std::string> declared_types;
+ std::vector<std::string> errors;
public:
Parser();
void preprocess_stage();
RefPtr<Statement> parse_global_declaration();
+ template<typename T>
+ RefPtr<T> parse_with_recovery(RefPtr<T> (Parser::*)());
RefPtr<Statement> parse_statement();
RefPtr<Import> parse_import();
RefPtr<Precision> parse_precision();