-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgerador_LALR.h
38 lines (26 loc) · 986 Bytes
/
gerador_LALR.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
#ifndef GERADOR_LALR_H
#define GERADOR_LALR_H
#include <bits/stdc++.h>
#include "func.h"
using namespace std;
class Gerador_LALR : public Objeto_base {
public:
Gerador_LALR(string fita_saida_lexica[TAMANHO_FITA_SAIDA]);
string fita_saida[TAMANHO_FITA_SAIDA];
string LALR_acao[TAMANHO_LINHA_TAB_LALR][TAMANHO_COLUNA_TAB_LALR];
string LALR_transicao[TAMANHO_LINHA_TAB_LALR][TAMANHO_COLUNA_TAB_LALR];
void gerar_cabecalho_LALR();
void exibir_LARL();
int encontrar_coluna_terminal(string terminal);
short encontrar_coluna_nao_terminal(string nao_terminal);
private:
protected:
void exibir_cabecalho_acao_LALR();
void exibir_cabecalho_transicao_LALR();
void exibir_corpo_acao_LALR();
void exibir_corpo_transicao_LALR();
void gerar_carga_tabela_LALR();
void criar_tabela_transicao(string term_ou_nao_term, string acao, string estado, int estado_atual);
void criar_tabela_acao(string term_ou_nao_term, string acao, string estado, int estado_atual);
};
#endif