-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterpretador.h
More file actions
44 lines (42 loc) · 1.04 KB
/
Copy pathInterpretador.h
File metadata and controls
44 lines (42 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef InterpretadorH
#define InterpretadorH
#include <iostream>
using namespace std;
#include <string>
#include "AnalisadorLexico.h"
#include "AnalisadorSintatico.h"
#include "GeradorDeResposta.h"
//---------------------------------------------------------------
class Interpretador
{
private:
AnalisadorLexico al;
AnalisadorSintatico as;
GeradorDeResposta gdr;
int CodigoDoErro,
PosicaoTexto,
PosicaoRepeticao,
PosicaoAnterior,
QuantidadeRepeticoes;
string Texto,
Expressao,
Resposta,
Condicao;
Ponteiro Tabela,
Variaveis;
Ponteiro retirarPalavras(Ponteiro);
public:
Interpretador();
~Interpretador();
void setTexto(string);
string getResposta(void);
string getExpressao(void);
int getPosicaoTexto(void);
void atualizarVariavel(int);
int separarExpressao(void);
int analisarExpressao(void);
void excluirListaDeVariaveis(void);
int retirarComentarios(void);
};
//---------------------------------------------------------------
#endif