/* main.cpp -- an implementation of the Boolfuck programming * language, invented by Sam Hughes (not that I'm the first). This * implementation is by Sam Hughes. Not designed for hyperefficiency * or anything :) -- boof@samuelhughes.com */ // Copyright 2005 (?) Sam Hughes, feel free to DWTFYWT. #include "boolfuck.h" #include using std::cerr; using std::cout; using std::cin; using std::endl; #include using std::string; #include using std::ifstream; int main(int argc, char ** argv) { if (argc != 2) { cerr << "Use one argument. Not wimping out, are you?\n"; return 1; } ifstream fin(argv[1]); if (! fin) { cerr << "Error opening file. Did you even make a file?\n"; return 1; } bf_interpreter interpreter(fin); interpreter.interpret(cin, cout); return 0; }