rewrite main and compile_file() in the implemented subset