-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterprete.h
executable file
·47 lines (43 loc) · 1.41 KB
/
Interprete.h
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
45
46
47
/*---------------------------------------------------------------------------*\
| Archivo : Interprete.h |
| Proyecto : Prolog.bpr |
| Programado por: Patricio Merino - Héctor Díaz. |
| Descripción : Esta librería empaqueta la clase Interprete, la cual |
| representa al interprete de comandos del Prolog. |
| Uso : En Editor.cpp |
\*---------------------------------------------------------------------------*/
#ifndef InterpreteH
#define InterpreteH
#include "Cadena.h"
#include "Objeto.h"
#include "Predicado.h"
#include "Regla.h"
class Interprete
{
private:
int estado;
int tipo_error;
int argumentos;
int antecedentes;
Cadena cadena;
Objeto objeto;
Predicado predicado;
Predicado hecho;
Regla regla;
public:
Interprete();
void interpreta(char c);
void revisaDominio();
void revisaPredicado();
void revisaHecho(int id_tipo_hecho);
void revisaRegla();
void revisaError(int tipo);
int obtieneTipoError();
String obtieneMensajeError();
bool reconoce();
void guardaObjeto();
void guardaPredicado();
void guardaHecho(int id_tipo_hecho);
void guardaRegla();
};
#endif