Move code into folders for convenience

This commit is contained in:
2019-08-06 13:53:46 -07:00
parent 914b93989c
commit 34e967f364
8 changed files with 17 additions and 18 deletions

14
code/compiler/02/main.cpp Normal file
View File

@@ -0,0 +1,14 @@
#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;
}