15 lines
295 B
C++
15 lines
295 B
C++
|
#include "ast.hpp"
|
||
|
#include "parser.hpp"
|
||
|
|
||
|
void yy::parser::error(const std::string& msg) {
|
||
|
std::cout << "An error occured: " << std::endl;
|
||
|
}
|
||
|
|
||
|
extern std::vector<definition_ptr> program;
|
||
|
|
||
|
int main() {
|
||
|
yy::parser parser;
|
||
|
parser.parse();
|
||
|
std::cout << program.size() << std::endl;
|
||
|
}
|