Add copy of part 2 project for part 3

This commit is contained in:
2019-08-25 01:10:55 -07:00
parent 6d280731e4
commit cf3d2f5d8b
6 changed files with 319 additions and 0 deletions

15
03/main.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "ast.hpp"
#include "parser.hpp"
#include "type.hpp"
void yy::parser::error(const std::string& msg) {
std::cout << "An error occured: " << msg << std::endl;
}
extern std::vector<definition_ptr> program;
int main() {
yy::parser parser;
parser.parse();
std::cout << program.size() << std::endl;
}