#ifndef HAOPAR_H #define HAOPAR_H #include "refcount.hh" #include "ast.hh" class parse_error {}; inline safe_ptr parse(std::istream & is) { extern std::istream * input; extern int yyparse(void); extern safe_ptr parse_result; input = &is; if (yyparse() != 0) throw parse_error(); return parse_result; } #endif /* HAOPAR_H */