@designliquido/delegua 0.1.5 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/bin/package.json +5 -3
- package/index.d.ts +1 -0
- package/package.json +4 -2
- package/src/ambiente.d.ts +11 -0
- package/src/avaliador-sintatico/dialetos/egua-classico.d.ts +60 -0
- package/src/avaliador-sintatico/dialetos/egua-classico.js +118 -118
- package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -1
- package/src/avaliador-sintatico/dialetos/index.d.ts +1 -0
- package/src/avaliador-sintatico/erros-avaliador.d.ts +2 -0
- package/src/avaliador-sintatico/{parser-error.js → erros-avaliador.js} +1 -1
- package/src/avaliador-sintatico/erros-avaliador.js.map +1 -0
- package/src/avaliador-sintatico/index.d.ts +61 -0
- package/src/avaliador-sintatico/index.js +131 -132
- package/src/avaliador-sintatico/index.js.map +1 -1
- package/src/bibliotecas/bibliotecaGlobal.d.ts +1 -0
- package/src/bibliotecas/importarBiblioteca.d.ts +2 -0
- package/src/construtos/assign-subscript.d.ts +8 -0
- package/src/construtos/assign-subscript.js +1 -1
- package/src/construtos/assign-subscript.js.map +1 -1
- package/src/construtos/atribuir.d.ts +7 -0
- package/src/construtos/atribuir.js +1 -1
- package/src/construtos/atribuir.js.map +1 -1
- package/src/construtos/binario.d.ts +8 -0
- package/src/construtos/binario.js +1 -1
- package/src/construtos/binario.js.map +1 -1
- package/src/construtos/call.d.ts +8 -0
- package/src/construtos/call.js +1 -1
- package/src/construtos/call.js.map +1 -1
- package/src/construtos/conjunto.d.ts +8 -0
- package/src/construtos/conjunto.js +1 -1
- package/src/construtos/conjunto.js.map +1 -1
- package/src/construtos/dicionario.d.ts +7 -0
- package/src/construtos/dicionario.js +1 -1
- package/src/construtos/dicionario.js.map +1 -1
- package/src/construtos/expr.d.ts +3 -0
- package/src/construtos/funcao.d.ts +7 -0
- package/src/construtos/funcao.js +1 -1
- package/src/construtos/funcao.js.map +1 -1
- package/src/construtos/get.d.ts +7 -0
- package/src/construtos/get.js +1 -1
- package/src/construtos/get.js.map +1 -1
- package/src/construtos/grouping.d.ts +6 -0
- package/src/construtos/grouping.js +1 -1
- package/src/construtos/grouping.js.map +1 -1
- package/src/construtos/index.d.ts +18 -0
- package/src/construtos/isto.d.ts +6 -0
- package/src/construtos/isto.js +1 -1
- package/src/construtos/isto.js.map +1 -1
- package/src/construtos/literal.d.ts +6 -0
- package/src/construtos/literal.js +1 -1
- package/src/construtos/literal.js.map +1 -1
- package/src/construtos/logical.d.ts +8 -0
- package/src/construtos/logical.js +1 -1
- package/src/construtos/logical.js.map +1 -1
- package/src/construtos/subscript.d.ts +8 -0
- package/src/construtos/subscript.js +1 -1
- package/src/construtos/subscript.js.map +1 -1
- package/src/construtos/super.d.ts +7 -0
- package/src/construtos/super.js +1 -1
- package/src/construtos/super.js.map +1 -1
- package/src/construtos/unario.d.ts +7 -0
- package/src/construtos/unario.js +1 -1
- package/src/construtos/unario.js.map +1 -1
- package/src/construtos/variavel.d.ts +6 -0
- package/src/construtos/variavel.js +1 -1
- package/src/construtos/variavel.js.map +1 -1
- package/src/construtos/vetor.d.ts +6 -0
- package/src/construtos/vetor.js +1 -1
- package/src/construtos/vetor.js.map +1 -1
- package/src/declaracoes/block.d.ts +6 -0
- package/src/declaracoes/block.js +33 -0
- package/src/declaracoes/block.js.map +1 -0
- package/src/declaracoes/classe.d.ts +8 -0
- package/src/declaracoes/classe.js +35 -0
- package/src/declaracoes/classe.js.map +1 -0
- package/src/declaracoes/continua.d.ts +5 -0
- package/src/declaracoes/continua.js +31 -0
- package/src/declaracoes/continua.js.map +1 -0
- package/src/declaracoes/enquanto.d.ts +7 -0
- package/src/declaracoes/enquanto.js +34 -0
- package/src/declaracoes/enquanto.js.map +1 -0
- package/src/declaracoes/escolha.d.ts +8 -0
- package/src/declaracoes/escolha.js +35 -0
- package/src/declaracoes/escolha.js.map +1 -0
- package/src/declaracoes/escreva.d.ts +6 -0
- package/src/declaracoes/escreva.js +33 -0
- package/src/declaracoes/escreva.js.map +1 -0
- package/src/declaracoes/expressao.d.ts +6 -0
- package/src/declaracoes/expressao.js +33 -0
- package/src/declaracoes/expressao.js.map +1 -0
- package/src/declaracoes/fazer.d.ts +7 -0
- package/src/declaracoes/fazer.js +34 -0
- package/src/declaracoes/fazer.js.map +1 -0
- package/src/declaracoes/funcao.d.ts +7 -0
- package/src/declaracoes/funcao.js +34 -0
- package/src/declaracoes/funcao.js.map +1 -0
- package/src/declaracoes/importar.d.ts +7 -0
- package/src/declaracoes/importar.js +34 -0
- package/src/declaracoes/importar.js.map +1 -0
- package/src/declaracoes/index.d.ts +17 -0
- package/src/declaracoes/index.js +27 -246
- package/src/declaracoes/index.js.map +1 -1
- package/src/declaracoes/para.d.ts +9 -0
- package/src/declaracoes/para.js +36 -0
- package/src/declaracoes/para.js.map +1 -0
- package/src/declaracoes/pausa.d.ts +5 -0
- package/src/declaracoes/pausa.js +31 -0
- package/src/declaracoes/pausa.js.map +1 -0
- package/src/declaracoes/retorna.d.ts +7 -0
- package/src/declaracoes/retorna.js +34 -0
- package/src/declaracoes/retorna.js.map +1 -0
- package/src/declaracoes/se.d.ts +9 -0
- package/src/declaracoes/se.js +36 -0
- package/src/declaracoes/se.js.map +1 -0
- package/src/declaracoes/stmt.d.ts +3 -0
- package/src/declaracoes/stmt.js +11 -0
- package/src/declaracoes/stmt.js.map +1 -0
- package/src/declaracoes/tente.d.ts +9 -0
- package/src/declaracoes/tente.js +36 -0
- package/src/declaracoes/tente.js.map +1 -0
- package/src/declaracoes/var.d.ts +7 -0
- package/src/declaracoes/var.js +34 -0
- package/src/declaracoes/var.js.map +1 -0
- package/src/delegua.d.ts +21 -0
- package/src/delegua.js +18 -12
- package/src/delegua.js.map +1 -1
- package/src/estruturas/callable.d.ts +5 -0
- package/src/estruturas/classe.d.ts +11 -0
- package/src/estruturas/funcao-padrao.d.ts +9 -0
- package/src/estruturas/funcao.d.ts +12 -0
- package/src/estruturas/funcao.js +1 -1
- package/src/estruturas/funcao.js.map +1 -1
- package/src/estruturas/index.d.ts +6 -0
- package/src/estruturas/instancia.d.ts +8 -0
- package/src/estruturas/modulo.d.ts +5 -0
- package/src/excecoes/break-exception.d.ts +2 -0
- package/src/excecoes/continue-exception.d.ts +2 -0
- package/src/excecoes/erro-em-tempo-de-execucao.d.ts +5 -0
- package/src/excecoes/index.d.ts +4 -0
- package/src/excecoes/return-exception.d.ts +4 -0
- package/src/interfaces/avaliador-sintatico-interface.d.ts +55 -0
- package/src/interfaces/index.d.ts +6 -0
- package/src/interfaces/interpretador-interface.d.ts +51 -0
- package/src/interfaces/lexador-interface.d.ts +23 -0
- package/src/interfaces/pilha-interface.d.ts +7 -0
- package/src/interfaces/resolvedor-interface.d.ts +48 -0
- package/src/interfaces/simbolo-interface.d.ts +6 -0
- package/src/interpretador/dialetos/egua-classico.d.ts +58 -0
- package/src/interpretador/dialetos/egua-classico.js +64 -68
- package/src/interpretador/dialetos/egua-classico.js.map +1 -1
- package/src/interpretador/dialetos/index.d.ts +1 -0
- package/src/interpretador/index.d.ts +58 -0
- package/src/interpretador/index.js +74 -75
- package/src/interpretador/index.js.map +1 -1
- package/src/lexador/dialetos/egua-classico.d.ts +31 -0
- package/src/lexador/dialetos/egua-classico.js +7 -9
- package/src/lexador/dialetos/egua-classico.js.map +1 -1
- package/src/lexador/dialetos/index.d.ts +1 -0
- package/src/lexador/index.d.ts +31 -0
- package/src/lexador/index.js +11 -13
- package/src/lexador/index.js.map +1 -1
- package/src/resolvedor/Pilha.d.ts +9 -0
- package/src/resolvedor/ResolverError.d.ts +4 -0
- package/src/resolvedor/dialetos/egua-classico.d.ts +56 -0
- package/src/resolvedor/dialetos/egua-classico.js +39 -39
- package/src/resolvedor/dialetos/egua-classico.js.map +1 -1
- package/src/resolvedor/dialetos/index.d.ts +1 -0
- package/src/resolvedor/index.d.ts +56 -0
- package/src/resolvedor/index.js +39 -39
- package/src/resolvedor/index.js.map +1 -1
- package/src/tiposDeSimbolos.d.ts +68 -0
- package/src/tiposDeSimbolos.js +7 -6
- package/src/tiposDeSimbolos.js.map +1 -1
- package/src/avaliador-sintatico/parser-error.js.map +0 -1
- package/src/web.js +0 -66
- package/src/web.js.map +0 -1
package/src/declaracoes/index.js
CHANGED
|
@@ -1,249 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
exports
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
return Expressao;
|
|
37
|
-
}(Stmt));
|
|
38
|
-
exports.Expressao = Expressao;
|
|
39
|
-
var Funcao = /** @class */ (function (_super) {
|
|
40
|
-
__extends(Funcao, _super);
|
|
41
|
-
function Funcao(nome, funcao) {
|
|
42
|
-
var _this = _super.call(this) || this;
|
|
43
|
-
_this.nome = nome;
|
|
44
|
-
_this.funcao = funcao;
|
|
45
|
-
return _this;
|
|
46
|
-
}
|
|
47
|
-
Funcao.prototype.aceitar = function (visitor) {
|
|
48
|
-
return visitor.visitFunctionStmt(this);
|
|
49
|
-
};
|
|
50
|
-
return Funcao;
|
|
51
|
-
}(Stmt));
|
|
52
|
-
exports.Funcao = Funcao;
|
|
53
|
-
var Retorna = /** @class */ (function (_super) {
|
|
54
|
-
__extends(Retorna, _super);
|
|
55
|
-
function Retorna(palavraChave, valor) {
|
|
56
|
-
var _this = _super.call(this) || this;
|
|
57
|
-
_this.palavraChave = palavraChave;
|
|
58
|
-
_this.valor = valor;
|
|
59
|
-
return _this;
|
|
60
|
-
}
|
|
61
|
-
Retorna.prototype.aceitar = function (visitor) {
|
|
62
|
-
return visitor.visitReturnStmt(this);
|
|
63
|
-
};
|
|
64
|
-
return Retorna;
|
|
65
|
-
}(Stmt));
|
|
66
|
-
exports.Retorna = Retorna;
|
|
67
|
-
var Classe = /** @class */ (function (_super) {
|
|
68
|
-
__extends(Classe, _super);
|
|
69
|
-
function Classe(nome, superClasse, metodos) {
|
|
70
|
-
var _this = _super.call(this) || this;
|
|
71
|
-
_this.nome = nome;
|
|
72
|
-
_this.superClasse = superClasse;
|
|
73
|
-
_this.metodos = metodos;
|
|
74
|
-
return _this;
|
|
75
|
-
}
|
|
76
|
-
Classe.prototype.aceitar = function (visitor) {
|
|
77
|
-
return visitor.visitClassStmt(this);
|
|
78
|
-
};
|
|
79
|
-
return Classe;
|
|
80
|
-
}(Stmt));
|
|
81
|
-
exports.Classe = Classe;
|
|
82
|
-
var Block = /** @class */ (function (_super) {
|
|
83
|
-
__extends(Block, _super);
|
|
84
|
-
function Block(declaracoes) {
|
|
85
|
-
var _this = _super.call(this) || this;
|
|
86
|
-
_this.declaracoes = declaracoes;
|
|
87
|
-
return _this;
|
|
88
|
-
}
|
|
89
|
-
Block.prototype.aceitar = function (visitor) {
|
|
90
|
-
return visitor.visitBlockStmt(this);
|
|
91
|
-
};
|
|
92
|
-
return Block;
|
|
93
|
-
}(Stmt));
|
|
94
|
-
exports.Block = Block;
|
|
95
|
-
var Escreva = /** @class */ (function (_super) {
|
|
96
|
-
__extends(Escreva, _super);
|
|
97
|
-
function Escreva(expressao) {
|
|
98
|
-
var _this = _super.call(this) || this;
|
|
99
|
-
_this.expressao = expressao;
|
|
100
|
-
return _this;
|
|
101
|
-
}
|
|
102
|
-
Escreva.prototype.aceitar = function (visitor) {
|
|
103
|
-
return visitor.visitPrintStmt(this);
|
|
104
|
-
};
|
|
105
|
-
return Escreva;
|
|
106
|
-
}(Stmt));
|
|
107
|
-
exports.Escreva = Escreva;
|
|
108
|
-
var Importar = /** @class */ (function (_super) {
|
|
109
|
-
__extends(Importar, _super);
|
|
110
|
-
function Importar(caminho, closeBracket) {
|
|
111
|
-
var _this = _super.call(this) || this;
|
|
112
|
-
_this.caminho = caminho;
|
|
113
|
-
_this.closeBracket = closeBracket;
|
|
114
|
-
return _this;
|
|
115
|
-
}
|
|
116
|
-
Importar.prototype.aceitar = function (visitor) {
|
|
117
|
-
return visitor.visitImportStmt(this);
|
|
118
|
-
};
|
|
119
|
-
return Importar;
|
|
120
|
-
}(Stmt));
|
|
121
|
-
exports.Importar = Importar;
|
|
122
|
-
var Fazer = /** @class */ (function (_super) {
|
|
123
|
-
__extends(Fazer, _super);
|
|
124
|
-
function Fazer(doBranch, whileCondition) {
|
|
125
|
-
var _this = _super.call(this) || this;
|
|
126
|
-
_this.doBranch = doBranch;
|
|
127
|
-
_this.whileCondition = whileCondition;
|
|
128
|
-
return _this;
|
|
129
|
-
}
|
|
130
|
-
Fazer.prototype.aceitar = function (visitor) {
|
|
131
|
-
return visitor.visitDoStmt(this);
|
|
132
|
-
};
|
|
133
|
-
return Fazer;
|
|
134
|
-
}(Stmt));
|
|
135
|
-
exports.Fazer = Fazer;
|
|
136
|
-
var Enquanto = /** @class */ (function (_super) {
|
|
137
|
-
__extends(Enquanto, _super);
|
|
138
|
-
function Enquanto(condicao, corpo) {
|
|
139
|
-
var _this = _super.call(this) || this;
|
|
140
|
-
_this.condicao = condicao;
|
|
141
|
-
_this.corpo = corpo;
|
|
142
|
-
return _this;
|
|
143
|
-
}
|
|
144
|
-
Enquanto.prototype.aceitar = function (visitor) {
|
|
145
|
-
return visitor.visitWhileStmt(this);
|
|
146
|
-
};
|
|
147
|
-
return Enquanto;
|
|
148
|
-
}(Stmt));
|
|
149
|
-
exports.Enquanto = Enquanto;
|
|
150
|
-
var Para = /** @class */ (function (_super) {
|
|
151
|
-
__extends(Para, _super);
|
|
152
|
-
function Para(inicializador, condicao, incrementar, corpo) {
|
|
153
|
-
var _this = _super.call(this) || this;
|
|
154
|
-
_this.inicializador = inicializador;
|
|
155
|
-
_this.condicao = condicao;
|
|
156
|
-
_this.incrementar = incrementar;
|
|
157
|
-
_this.corpo = corpo;
|
|
158
|
-
return _this;
|
|
159
|
-
}
|
|
160
|
-
Para.prototype.aceitar = function (visitor) {
|
|
161
|
-
return visitor.visitForStmt(this);
|
|
162
|
-
};
|
|
163
|
-
return Para;
|
|
164
|
-
}(Stmt));
|
|
165
|
-
exports.Para = Para;
|
|
166
|
-
var Tente = /** @class */ (function (_super) {
|
|
167
|
-
__extends(Tente, _super);
|
|
168
|
-
function Tente(tryBranch, catchBranch, elseBranch, finallyBranch) {
|
|
169
|
-
var _this = _super.call(this) || this;
|
|
170
|
-
_this.tryBranch = tryBranch;
|
|
171
|
-
_this.catchBranch = catchBranch;
|
|
172
|
-
_this.elseBranch = elseBranch;
|
|
173
|
-
_this.finallyBranch = finallyBranch;
|
|
174
|
-
return _this;
|
|
175
|
-
}
|
|
176
|
-
Tente.prototype.aceitar = function (visitor) {
|
|
177
|
-
return visitor.visitTryStmt(this);
|
|
178
|
-
};
|
|
179
|
-
return Tente;
|
|
180
|
-
}(Stmt));
|
|
181
|
-
exports.Tente = Tente;
|
|
182
|
-
var Se = /** @class */ (function (_super) {
|
|
183
|
-
__extends(Se, _super);
|
|
184
|
-
function Se(condicao, thenBranch, elifBranches, elseBranch) {
|
|
185
|
-
var _this = _super.call(this) || this;
|
|
186
|
-
_this.condicao = condicao;
|
|
187
|
-
_this.thenBranch = thenBranch;
|
|
188
|
-
_this.elifBranches = elifBranches;
|
|
189
|
-
_this.elseBranch = elseBranch;
|
|
190
|
-
return _this;
|
|
191
|
-
}
|
|
192
|
-
Se.prototype.aceitar = function (visitor) {
|
|
193
|
-
return visitor.visitIfStmt(this);
|
|
194
|
-
};
|
|
195
|
-
return Se;
|
|
196
|
-
}(Stmt));
|
|
197
|
-
exports.Se = Se;
|
|
198
|
-
var Escolha = /** @class */ (function (_super) {
|
|
199
|
-
__extends(Escolha, _super);
|
|
200
|
-
function Escolha(condicao, branches, defaultBranch) {
|
|
201
|
-
var _this = _super.call(this) || this;
|
|
202
|
-
_this.condicao = condicao;
|
|
203
|
-
_this.branches = branches;
|
|
204
|
-
_this.defaultBranch = defaultBranch;
|
|
205
|
-
return _this;
|
|
206
|
-
}
|
|
207
|
-
Escolha.prototype.aceitar = function (visitor) {
|
|
208
|
-
return visitor.visitSwitchStmt(this);
|
|
209
|
-
};
|
|
210
|
-
return Escolha;
|
|
211
|
-
}(Stmt));
|
|
212
|
-
exports.Escolha = Escolha;
|
|
213
|
-
var Pausa = /** @class */ (function (_super) {
|
|
214
|
-
__extends(Pausa, _super);
|
|
215
|
-
function Pausa() {
|
|
216
|
-
return _super.call(this) || this;
|
|
217
|
-
}
|
|
218
|
-
Pausa.prototype.aceitar = function (visitor) {
|
|
219
|
-
return visitor.visitBreakStmt(this);
|
|
220
|
-
};
|
|
221
|
-
return Pausa;
|
|
222
|
-
}(Stmt));
|
|
223
|
-
exports.Pausa = Pausa;
|
|
224
|
-
var Continua = /** @class */ (function (_super) {
|
|
225
|
-
__extends(Continua, _super);
|
|
226
|
-
function Continua() {
|
|
227
|
-
return _super.call(this) || this;
|
|
228
|
-
}
|
|
229
|
-
Continua.prototype.aceitar = function (visitor) {
|
|
230
|
-
return visitor.visitContinueStmt(this);
|
|
231
|
-
};
|
|
232
|
-
return Continua;
|
|
233
|
-
}(Stmt));
|
|
234
|
-
exports.Continua = Continua;
|
|
235
|
-
var Var = /** @class */ (function (_super) {
|
|
236
|
-
__extends(Var, _super);
|
|
237
|
-
function Var(nome, inicializador) {
|
|
238
|
-
var _this = _super.call(this) || this;
|
|
239
|
-
_this.nome = nome;
|
|
240
|
-
_this.inicializador = inicializador;
|
|
241
|
-
return _this;
|
|
242
|
-
}
|
|
243
|
-
Var.prototype.aceitar = function (visitor) {
|
|
244
|
-
return visitor.visitVarStmt(this);
|
|
245
|
-
};
|
|
246
|
-
return Var;
|
|
247
|
-
}(Stmt));
|
|
248
|
-
exports.Var = Var;
|
|
13
|
+
__exportStar(require("./block"), exports);
|
|
14
|
+
__exportStar(require("./classe"), exports);
|
|
15
|
+
__exportStar(require("./continua"), exports);
|
|
16
|
+
__exportStar(require("./enquanto"), exports);
|
|
17
|
+
__exportStar(require("./escolha"), exports);
|
|
18
|
+
__exportStar(require("./escreva"), exports);
|
|
19
|
+
__exportStar(require("./expressao"), exports);
|
|
20
|
+
__exportStar(require("./fazer"), exports);
|
|
21
|
+
__exportStar(require("./funcao"), exports);
|
|
22
|
+
__exportStar(require("./importar"), exports);
|
|
23
|
+
__exportStar(require("./para"), exports);
|
|
24
|
+
__exportStar(require("./pausa"), exports);
|
|
25
|
+
__exportStar(require("./retorna"), exports);
|
|
26
|
+
__exportStar(require("./se"), exports);
|
|
27
|
+
__exportStar(require("./stmt"), exports);
|
|
28
|
+
__exportStar(require("./tente"), exports);
|
|
29
|
+
__exportStar(require("./var"), exports);
|
|
249
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/declaracoes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/declaracoes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,uCAAqB;AACrB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Para = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Para = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Para, _super);
|
|
22
|
+
function Para(inicializador, condicao, incrementar, corpo) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.inicializador = inicializador;
|
|
25
|
+
_this.condicao = condicao;
|
|
26
|
+
_this.incrementar = incrementar;
|
|
27
|
+
_this.corpo = corpo;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
Para.prototype.aceitar = function (visitor) {
|
|
31
|
+
return visitor.visitarExpressaoPara(this);
|
|
32
|
+
};
|
|
33
|
+
return Para;
|
|
34
|
+
}(stmt_1.Stmt));
|
|
35
|
+
exports.Para = Para;
|
|
36
|
+
//# sourceMappingURL=para.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"para.js","sourceRoot":"","sources":["../../../src/declaracoes/para.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA0B,wBAAI;IAM1B,cAAY,aAAkB,EAAE,QAAa,EAAE,WAAgB,EAAE,KAAU;QAA3E,YACI,iBAAO,SAKV;QAJG,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,sBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IACL,WAAC;AAAD,CAAC,AAjBD,CAA0B,WAAI,GAiB7B;AAjBY,oBAAI"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Pausa = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Pausa = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Pausa, _super);
|
|
22
|
+
function Pausa() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
Pausa.prototype.aceitar = function (visitor) {
|
|
26
|
+
return visitor.visitarExpressaoPausa(this);
|
|
27
|
+
};
|
|
28
|
+
return Pausa;
|
|
29
|
+
}(stmt_1.Stmt));
|
|
30
|
+
exports.Pausa = Pausa;
|
|
31
|
+
//# sourceMappingURL=pausa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pausa.js","sourceRoot":"","sources":["../../../src/declaracoes/pausa.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA2B,yBAAI;IAC3B;eACI,iBAAO;IACX,CAAC;IAED,uBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACL,YAAC;AAAD,CAAC,AARD,CAA2B,WAAI,GAQ9B;AARY,sBAAK"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Retorna = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Retorna = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Retorna, _super);
|
|
22
|
+
function Retorna(palavraChave, valor) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.palavraChave = palavraChave;
|
|
25
|
+
_this.valor = valor;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Retorna.prototype.aceitar = function (visitor) {
|
|
29
|
+
return visitor.visitarExpressaoRetornar(this);
|
|
30
|
+
};
|
|
31
|
+
return Retorna;
|
|
32
|
+
}(stmt_1.Stmt));
|
|
33
|
+
exports.Retorna = Retorna;
|
|
34
|
+
//# sourceMappingURL=retorna.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retorna.js","sourceRoot":"","sources":["../../../src/declaracoes/retorna.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA6B,2BAAI;IAI7B,iBAAY,YAAiB,EAAE,KAAU;QAAzC,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,yBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,cAAC;AAAD,CAAC,AAbD,CAA6B,WAAI,GAahC;AAbY,0BAAO"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Stmt } from "./stmt";
|
|
2
|
+
export declare class Se extends Stmt {
|
|
3
|
+
condicao: any;
|
|
4
|
+
thenBranch: any;
|
|
5
|
+
elifBranches: any;
|
|
6
|
+
elseBranch: any;
|
|
7
|
+
constructor(condicao: any, thenBranch: any, elifBranches: any, elseBranch: any);
|
|
8
|
+
aceitar(visitor: any): any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Se = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Se = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Se, _super);
|
|
22
|
+
function Se(condicao, thenBranch, elifBranches, elseBranch) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.condicao = condicao;
|
|
25
|
+
_this.thenBranch = thenBranch;
|
|
26
|
+
_this.elifBranches = elifBranches;
|
|
27
|
+
_this.elseBranch = elseBranch;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
Se.prototype.aceitar = function (visitor) {
|
|
31
|
+
return visitor.visitarExpressaoSe(this);
|
|
32
|
+
};
|
|
33
|
+
return Se;
|
|
34
|
+
}(stmt_1.Stmt));
|
|
35
|
+
exports.Se = Se;
|
|
36
|
+
//# sourceMappingURL=se.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"se.js","sourceRoot":"","sources":["../../../src/declaracoes/se.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAAwB,sBAAI;IAMxB,YAAY,QAAa,EAAE,UAAe,EAAE,YAAiB,EAAE,UAAe;QAA9E,YACI,iBAAO,SAKV;QAJG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;;IACjC,CAAC;IAED,oBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IACL,SAAC;AAAD,CAAC,AAjBD,CAAwB,WAAI,GAiB3B;AAjBY,gBAAE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Stmt = void 0;
|
|
4
|
+
var Stmt = /** @class */ (function () {
|
|
5
|
+
function Stmt() {
|
|
6
|
+
}
|
|
7
|
+
Stmt.prototype.aceitar = function (visitor) { };
|
|
8
|
+
return Stmt;
|
|
9
|
+
}());
|
|
10
|
+
exports.Stmt = Stmt;
|
|
11
|
+
//# sourceMappingURL=stmt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stmt.js","sourceRoot":"","sources":["../../../src/declaracoes/stmt.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAEA,CAAC;IADG,sBAAO,GAAP,UAAQ,OAAY,IAAS,CAAC;IAClC,WAAC;AAAD,CAAC,AAFD,IAEC;AAFY,oBAAI"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Stmt } from "./stmt";
|
|
2
|
+
export declare class Tente extends Stmt {
|
|
3
|
+
tryBranch: any;
|
|
4
|
+
catchBranch: any;
|
|
5
|
+
elseBranch: any;
|
|
6
|
+
finallyBranch: any;
|
|
7
|
+
constructor(tryBranch: any, catchBranch: any, elseBranch: any, finallyBranch: any);
|
|
8
|
+
aceitar(visitor: any): any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Tente = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Tente = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Tente, _super);
|
|
22
|
+
function Tente(tryBranch, catchBranch, elseBranch, finallyBranch) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.tryBranch = tryBranch;
|
|
25
|
+
_this.catchBranch = catchBranch;
|
|
26
|
+
_this.elseBranch = elseBranch;
|
|
27
|
+
_this.finallyBranch = finallyBranch;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
Tente.prototype.aceitar = function (visitor) {
|
|
31
|
+
return visitor.visitarExpressaoTente(this);
|
|
32
|
+
};
|
|
33
|
+
return Tente;
|
|
34
|
+
}(stmt_1.Stmt));
|
|
35
|
+
exports.Tente = Tente;
|
|
36
|
+
//# sourceMappingURL=tente.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tente.js","sourceRoot":"","sources":["../../../src/declaracoes/tente.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA2B,yBAAI;IAM3B,eAAY,SAAc,EAAE,WAAgB,EAAE,UAAe,EAAE,aAAkB;QAAjF,YACI,iBAAO,SAKV;QAJG,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;;IACvC,CAAC;IAED,uBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACL,YAAC;AAAD,CAAC,AAjBD,CAA2B,WAAI,GAiB9B;AAjBY,sBAAK"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Var = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Var = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Var, _super);
|
|
22
|
+
function Var(nome, inicializador) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.nome = nome;
|
|
25
|
+
_this.inicializador = inicializador;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Var.prototype.aceitar = function (visitor) {
|
|
29
|
+
return visitor.visitarExpressaoVar(this);
|
|
30
|
+
};
|
|
31
|
+
return Var;
|
|
32
|
+
}(stmt_1.Stmt));
|
|
33
|
+
exports.Var = Var;
|
|
34
|
+
//# sourceMappingURL=var.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"var.js","sourceRoot":"","sources":["../../../src/declaracoes/var.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAAyB,uBAAI;IAIzB,aAAY,IAAS,EAAE,aAAkB;QAAzC,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;;IACvC,CAAC;IAED,qBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACL,UAAC;AAAD,CAAC,AAbD,CAAyB,WAAI,GAa5B;AAbY,kBAAG"}
|
package/src/delegua.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AvaliadorSintaticoInterface, InterpretadorInterface, LexadorInterface, SimboloInterface } from "./interfaces";
|
|
2
|
+
import { ResolvedorInterface } from "./interfaces/resolvedor-interface";
|
|
3
|
+
export declare class Delegua {
|
|
4
|
+
nomeArquivo: any;
|
|
5
|
+
teveErro: boolean;
|
|
6
|
+
teveErroEmTempoDeExecucao: boolean;
|
|
7
|
+
dialeto: string;
|
|
8
|
+
interpretador: InterpretadorInterface;
|
|
9
|
+
lexador: LexadorInterface;
|
|
10
|
+
avaliadorSintatico: AvaliadorSintaticoInterface;
|
|
11
|
+
resolvedor: ResolvedorInterface;
|
|
12
|
+
constructor(dialeto?: string, nomeArquivo?: string);
|
|
13
|
+
versao(): any;
|
|
14
|
+
iniciarDelegua(): void;
|
|
15
|
+
carregarArquivo(nomeArquivo: any): void;
|
|
16
|
+
executar(codigo: any): void;
|
|
17
|
+
reportar(linha: any, onde: any, mensagem: any): void;
|
|
18
|
+
erro(simbolo: SimboloInterface, mensagemDeErro: any): void;
|
|
19
|
+
erroNoLexador(linha: any, caractere: any, mensagem: any): void;
|
|
20
|
+
erroEmTempoDeExecucao(erro: any): void;
|
|
21
|
+
}
|