interpretador.h

来自「"tiny" language interpreter written in j」· C头文件 代码 · 共 41 行

H
41
字号
/*
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 + =
减小字号Ctrl + -
显示快捷键?