#ifndef VMTRANSLATOR_H
#define VMTRANSLATOR_H
#include
Copyright By PowCoder代写 加微信 powcoder
using namespace std;
class VMTranslator {
VMTranslator();
~VMTranslator();
static string vm_push(string segment, int offset);
static string vm_pop(string segment, int offset);
static string vm_add();
static string vm_sub();
static string vm_neg();
static string vm_eq();
static string vm_gt();
static string vm_lt();
static string vm_and();
static string vm_or();
static string vm_not();
static string vm_label(string label);
static string vm_goto(string label);
static string vm_if(string label);
static string vm_function(string function_name, int n_vars);
static string vm_call(string function_name, int n_args);
static string vm_return();
#endif /* VMTRANSLATOR_H */
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com