Mercurial > hg > Members > nobuyasu > myCompiler
view Bison-Flex/Compiler-StackBase/UTF8/script.cpp @ 7:23b18b61c35f draft default tip
analyser
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 05 Feb 2013 07:36:02 +0900 |
parents | 86c0a38332fe |
children |
line wrap: on
line source
#include <iostream> #include "compiler.h" #include "vm.h" int main(int argc, char *argv[]) { for (++argv; argv[0]; ++argv) { vm::data data; bool compile_result; { compiler driver; compile_result = driver.compile(*argv, data); #ifdef _DEBUG if (compile_result) driver.debug_dump(); #endif } if (compile_result) { vm::vcpu machine(data); machine.run(); // int result = machine.run(); // std::cout << "result = " << result << std::endl; } } return 0; }