-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharb_def.h
33 lines (30 loc) · 963 Bytes
/
arb_def.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
#ifndef ARB_H
#define ARB_H
#include <stdio.h>
#include <iostream>
#include "variables.h"
/* Definicion de la clase base ArbolSintactico */
class ArbolSintactico {
ArbolSintactico * first;
public:
int ident;
int linea;
bool is_type;
ArbolSintactico(): is_type(0){};
ArbolSintactico(int i): ident(i),is_type(0) {};
ArbolSintactico(ArbolSintactico * l): first(l),is_type(0) {};
virtual void imprimir(int i){ if(first != NULL) first->imprimir(i); };
virtual int get_ident(){ return ident; }
virtual void add_variable(int tipo, bool doble){ return; }
virtual void check(){;}
virtual void ejecutar(){if(first != NULL) first->ejecutar();}
virtual int * get_value(){;}
virtual bool * get_bool(){;}
virtual char * get_character(){;}
virtual void activate(){;}
virtual void deactivate(){;}
virtual bool advance(){;}
virtual void add_comportamiento(ArbolSintactico * comp){;}
virtual void add_value(variable * value){;}
};
#endif