📄 interpretador.h
字号:
/*
TP2 LP INTERPRETADOR TINY
ALUNO : ANDRE LUIS DURAO ABDO
MATRICULA : 283999
DATA DA ENTREGA : 10/05/2007
*/
//Interpretador.h
#ifndef INTERPRETADOR_H
#define INTERPRETADOR_H
#include "ArquivoFonte.h"
#include "Memoria.h"
#include "Comando.h"
#include <stack>
using namespace std;
class Interpretador{
public:
Interpretador( const string& str );
~Interpretador(){};
void leArquivo();
void adicionaComando(Comando* cmd);
void executa();
void listaArquivo();
void listaPalavras();
void listaComandos();
private:
ArquivoFonte *arq;
//memoria de dados
Memoria *mem;
//memoria de rotulos
Memoria *memRotulos;
//vetor de comandos
vector <Comando*> Vetor;
//pilha de instrucoes de repeticao
stack <int> pilhaRepeticao;
string intToString(int valor);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -