@designliquido/lincones-sqlite 0.0.2 → 0.0.4
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/execucao.d.ts +1 -1
- package/execucao.js +52 -52
- package/execucao.js.map +1 -1
- package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +6 -15
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +42 -261
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/avaliador-sintatico/index.d.ts +1 -2
- package/fontes/avaliador-sintatico/index.js +5 -20
- package/fontes/avaliador-sintatico/index.js.map +1 -1
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +36 -0
- package/{comum/fontes/avaliador-sintatico/avaliador-sintatico.js → fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js} +444 -263
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -0
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +7 -0
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico.js +12 -0
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -0
- package/{comum → fontes/comum}/fontes/avaliador-sintatico/erro-avaliador-sintatico.d.ts +5 -5
- package/{comum → fontes/comum}/fontes/avaliador-sintatico/erro-avaliador-sintatico.js +11 -11
- package/fontes/comum/fontes/avaliador-sintatico/erro-avaliador-sintatico.js.map +1 -0
- package/fontes/comum/fontes/avaliador-sintatico/index.d.ts +3 -0
- package/{comum → fontes/comum}/fontes/avaliador-sintatico/index.js +19 -22
- package/fontes/comum/fontes/avaliador-sintatico/index.js.map +1 -0
- package/fontes/comum/fontes/comandos/alterar.d.ts +8 -0
- package/fontes/comum/fontes/comandos/alterar.js +14 -0
- package/fontes/comum/fontes/comandos/alterar.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/atualizar.d.ts +14 -14
- package/{comum → fontes/comum}/fontes/comandos/atualizar.js +13 -13
- package/fontes/comum/fontes/comandos/atualizar.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/comando.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/comandos/comando.js +13 -13
- package/fontes/comum/fontes/comandos/comando.js.map +1 -0
- package/fontes/comum/fontes/comandos/criar.d.ts +8 -0
- package/{comum → fontes/comum}/fontes/comandos/criar.js +12 -12
- package/fontes/comum/fontes/comandos/criar.js.map +1 -0
- package/fontes/comum/fontes/comandos/excluir-entidade.d.ts +6 -0
- package/fontes/comum/fontes/comandos/excluir-entidade.js +13 -0
- package/fontes/comum/fontes/comandos/excluir-entidade.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/excluir.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/comandos/excluir.js +12 -12
- package/fontes/comum/fontes/comandos/excluir.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/index.d.ts +8 -6
- package/{comum → fontes/comum}/fontes/comandos/index.js +24 -22
- package/fontes/comum/fontes/comandos/index.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/inserir.d.ts +8 -8
- package/{comum → fontes/comum}/fontes/comandos/inserir.js +13 -13
- package/fontes/comum/fontes/comandos/inserir.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/selecionar.d.ts +9 -9
- package/{comum → fontes/comum}/fontes/comandos/selecionar.js +14 -14
- package/fontes/comum/fontes/comandos/selecionar.js.map +1 -0
- package/{comum → fontes/comum}/fontes/construtos/coluna.d.ts +11 -11
- package/{comum → fontes/comum}/fontes/construtos/coluna.js +19 -15
- package/fontes/comum/fontes/construtos/coluna.js.map +1 -0
- package/{comum → fontes/comum}/fontes/construtos/condicao.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/construtos/condicao.js +11 -11
- package/fontes/comum/fontes/construtos/condicao.js.map +1 -0
- package/{comum → fontes/comum}/fontes/construtos/index.d.ts +2 -1
- package/{comum → fontes/comum}/fontes/construtos/index.js +18 -17
- package/fontes/comum/fontes/construtos/index.js.map +1 -0
- package/fontes/comum/fontes/construtos/operacao-alteracao-tabela.d.ts +7 -0
- package/fontes/comum/fontes/construtos/operacao-alteracao-tabela.js +15 -0
- package/fontes/comum/fontes/construtos/operacao-alteracao-tabela.js.map +1 -0
- package/fontes/comum/fontes/construtos/restricao.d.ts +13 -0
- package/fontes/comum/fontes/construtos/restricao.js +19 -0
- package/fontes/comum/fontes/construtos/restricao.js.map +1 -0
- package/{comum → fontes/comum}/fontes/interfaces/avaliador-sintatico-interface.d.ts +14 -14
- package/{comum → fontes/comum}/fontes/interfaces/avaliador-sintatico-interface.js +2 -2
- package/fontes/comum/fontes/interfaces/avaliador-sintatico-interface.js.map +1 -0
- package/fontes/comum/fontes/interfaces/index.d.ts +3 -0
- package/fontes/comum/fontes/interfaces/index.js +20 -0
- package/fontes/comum/fontes/interfaces/index.js.map +1 -0
- package/fontes/comum/fontes/interfaces/lincones-interface.d.ts +3 -0
- package/{comum → fontes/comum}/fontes/interfaces/lincones-interface.js +2 -2
- package/fontes/comum/fontes/interfaces/lincones-interface.js.map +1 -0
- package/{comum → fontes/comum}/fontes/interfaces/retornos/index.d.ts +16 -16
- package/{comum → fontes/comum}/fontes/interfaces/retornos/index.js +2 -2
- package/fontes/comum/fontes/interfaces/retornos/index.js.map +1 -0
- package/{comum → fontes/comum}/fontes/interfaces/simbolo-interface.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/interfaces/simbolo-interface.js +2 -2
- package/fontes/comum/fontes/interfaces/simbolo-interface.js.map +1 -0
- package/fontes/comum/fontes/lexador/index.d.ts +1 -0
- package/{comum/fontes/interfaces → fontes/comum/fontes/lexador}/index.js +17 -17
- package/fontes/comum/fontes/lexador/index.js.map +1 -0
- package/{comum/fontes/lexador/index.d.ts → fontes/comum/fontes/lexador/lexador.d.ts} +26 -26
- package/{comum/fontes/lexador/index.js → fontes/comum/fontes/lexador/lexador.js} +220 -220
- package/fontes/comum/fontes/lexador/lexador.js.map +1 -0
- package/{comum → fontes/comum}/fontes/lexador/simbolo.d.ts +9 -9
- package/{comum → fontes/comum}/fontes/lexador/simbolo.js +15 -15
- package/fontes/comum/fontes/lexador/simbolo.js.map +1 -0
- package/fontes/comum/fontes/palavras-reservadas.d.ts +51 -0
- package/{comum → fontes/comum}/fontes/palavras-reservadas.js +56 -31
- package/fontes/comum/fontes/palavras-reservadas.js.map +1 -0
- package/{comum → fontes/comum}/fontes/tipos-de-simbolos.d.ts +57 -38
- package/{comum → fontes/comum}/fontes/tipos-de-simbolos.js +58 -39
- package/fontes/comum/fontes/tipos-de-simbolos.js.map +1 -0
- package/fontes/comum/fontes/tradutor/index.d.ts +32 -0
- package/{comum → fontes/comum}/fontes/tradutor/index.js +238 -160
- package/fontes/comum/fontes/tradutor/index.js.map +1 -0
- package/fontes/comum/index.d.ts +8 -0
- package/fontes/comum/index.js +25 -0
- package/fontes/comum/index.js.map +1 -0
- package/{comum → fontes/comum}/jest.config.d.ts +3 -3
- package/{comum → fontes/comum}/jest.config.js +11 -11
- package/fontes/comum/jest.config.js.map +1 -0
- package/{comum/execucao.d.ts → fontes/comum/testes/avaliador-sintatico.test.d.ts} +1 -1
- package/fontes/comum/testes/avaliador-sintatico.test.js +86 -0
- package/fontes/comum/testes/avaliador-sintatico.test.js.map +1 -0
- package/fontes/comum/testes/lexador.test.d.ts +1 -0
- package/fontes/comum/testes/lexador.test.js +83 -0
- package/fontes/comum/testes/lexador.test.js.map +1 -0
- package/fontes/comum/testes/tradutor.test.d.ts +1 -0
- package/fontes/comum/testes/tradutor.test.js +133 -0
- package/fontes/comum/testes/tradutor.test.js.map +1 -0
- package/fontes/infraestrutura/cliente-sqlite.d.ts +10 -10
- package/fontes/infraestrutura/cliente-sqlite.js +71 -71
- package/fontes/infraestrutura/cliente-sqlite.js.map +1 -1
- package/fontes/infraestrutura/index.d.ts +2 -2
- package/fontes/infraestrutura/index.js +18 -18
- package/fontes/infraestrutura/retorno-comando.d.ts +8 -8
- package/fontes/infraestrutura/retorno-comando.js +28 -28
- package/fontes/infraestrutura/retorno-comando.js.map +1 -1
- package/fontes/lincones-sqlite.d.ts +13 -13
- package/fontes/lincones-sqlite.js +28 -28
- package/fontes/lincones-sqlite.js.map +1 -1
- package/fontes/palavras-reservadas.d.ts +26 -26
- package/fontes/palavras-reservadas.js +31 -31
- package/fontes/palavras-reservadas.js.map +1 -1
- package/fontes/tradutor/index.d.ts +21 -19
- package/fontes/tradutor/index.js +152 -149
- package/fontes/tradutor/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +17 -17
- package/package.json +17 -16
- package/comum/execucao.js +0 -40
- package/comum/execucao.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +0 -15
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js +0 -46
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +0 -15
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/erro-avaliador-sintatico.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/index.d.ts +0 -3
- package/comum/fontes/avaliador-sintatico/index.js.map +0 -1
- package/comum/fontes/comandos/atualizar.js.map +0 -1
- package/comum/fontes/comandos/comando.js.map +0 -1
- package/comum/fontes/comandos/criar.d.ts +0 -7
- package/comum/fontes/comandos/criar.js.map +0 -1
- package/comum/fontes/comandos/excluir.js.map +0 -1
- package/comum/fontes/comandos/index.js.map +0 -1
- package/comum/fontes/comandos/inserir.js.map +0 -1
- package/comum/fontes/comandos/selecionar.js.map +0 -1
- package/comum/fontes/construtos/coluna.js.map +0 -1
- package/comum/fontes/construtos/condicao.js.map +0 -1
- package/comum/fontes/construtos/index.js.map +0 -1
- package/comum/fontes/interfaces/avaliador-sintatico-interface.js.map +0 -1
- package/comum/fontes/interfaces/index.d.ts +0 -3
- package/comum/fontes/interfaces/index.js.map +0 -1
- package/comum/fontes/interfaces/lincones-interface.d.ts +0 -3
- package/comum/fontes/interfaces/lincones-interface.js.map +0 -1
- package/comum/fontes/interfaces/retornos/index.js.map +0 -1
- package/comum/fontes/interfaces/simbolo-interface.js.map +0 -1
- package/comum/fontes/lexador/index.js.map +0 -1
- package/comum/fontes/lexador/simbolo.js.map +0 -1
- package/comum/fontes/lincones.d.ts +0 -10
- package/comum/fontes/lincones.js +0 -21
- package/comum/fontes/lincones.js.map +0 -1
- package/comum/fontes/palavras-reservadas.d.ts +0 -26
- package/comum/fontes/palavras-reservadas.js.map +0 -1
- package/comum/fontes/tipos-de-simbolos.js.map +0 -1
- package/comum/fontes/tradutor/index.d.ts +0 -18
- package/comum/fontes/tradutor/index.js.map +0 -1
- package/comum/index.d.ts +0 -1
- package/comum/index.js +0 -6
- package/comum/index.js.map +0 -1
- package/comum/jest.config.js.map +0 -1
- package/fontes/lexador/index.d.ts +0 -26
- package/fontes/lexador/index.js +0 -220
- package/fontes/lexador/index.js.map +0 -1
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Coluna = void 0;
|
|
4
|
-
class Coluna {
|
|
5
|
-
constructor(nomeColuna, tipo, tamanho, nulo, chavePrimaria, chaveEstrangeira, autoIncremento) {
|
|
6
|
-
this.nomeColuna = nomeColuna;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Coluna = void 0;
|
|
4
|
+
class Coluna {
|
|
5
|
+
constructor(nomeColuna, tipo, tamanho, nulo, chavePrimaria, chaveEstrangeira, autoIncremento) {
|
|
6
|
+
this.nomeColuna = nomeColuna;
|
|
7
|
+
const tipoColunaResolvido = tipo.toUpperCase();
|
|
8
|
+
if (!['INTEIRO', 'LOGICO', 'NUMERO', 'TEXTO'].includes(tipoColunaResolvido)) {
|
|
9
|
+
throw new Error(`Tipo de dados de coluna inválido: ${tipoColunaResolvido}`);
|
|
10
|
+
}
|
|
11
|
+
this.tipo = tipoColunaResolvido;
|
|
12
|
+
this.tamanho = tamanho;
|
|
13
|
+
this.nulo = nulo === true ? true : false;
|
|
14
|
+
this.chavePrimaria = chavePrimaria || false;
|
|
15
|
+
this.chaveEstrangeira = chaveEstrangeira || false;
|
|
16
|
+
this.autoIncremento = autoIncremento || false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Coluna = Coluna;
|
|
16
20
|
//# sourceMappingURL=coluna.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coluna.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/construtos/coluna.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IASf,YACI,UAAkB,EAClB,IAAY,EACZ,OAAiB,EACjB,IAAc,EACd,aAAuB,EACvB,gBAA0B,EAC1B,cAAwB;QAExB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAC/C,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC;YAC1E,MAAM,IAAI,KAAK,CAAC,qCAAqC,mBAAmB,EAAE,CAAC,CAAC;QAChF,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,mBAAgE,CAAC;QAC7E,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,aAAa,IAAI,KAAK,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,IAAI,KAAK,CAAC;QAClD,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,KAAK,CAAC;IAClD,CAAC;CACJ;AAhCD,wBAgCC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class Condicao {
|
|
2
|
-
esquerda: any;
|
|
3
|
-
direita: any;
|
|
4
|
-
operador: 'IGUAL' | 'MAIOR' | 'MAIOR_IGUAL' | 'MENOR' | 'MENOR_IGUAL';
|
|
5
|
-
constructor(esquerda: any, operador: any, direita: any);
|
|
6
|
-
}
|
|
1
|
+
export declare class Condicao {
|
|
2
|
+
esquerda: any;
|
|
3
|
+
direita: any;
|
|
4
|
+
operador: 'IGUAL' | 'MAIOR' | 'MAIOR_IGUAL' | 'MENOR' | 'MENOR_IGUAL';
|
|
5
|
+
constructor(esquerda: any, operador: any, direita: any);
|
|
6
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Condicao = void 0;
|
|
4
|
-
class Condicao {
|
|
5
|
-
constructor(esquerda, operador, direita) {
|
|
6
|
-
this.esquerda = esquerda;
|
|
7
|
-
this.direita = direita;
|
|
8
|
-
this.operador = operador;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.Condicao = Condicao;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Condicao = void 0;
|
|
4
|
+
class Condicao {
|
|
5
|
+
constructor(esquerda, operador, direita) {
|
|
6
|
+
this.esquerda = esquerda;
|
|
7
|
+
this.direita = direita;
|
|
8
|
+
this.operador = operador;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.Condicao = Condicao;
|
|
12
12
|
//# sourceMappingURL=condicao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condicao.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/construtos/condicao.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;IAKjB,YAAY,QAAa,EAAE,QAAa,EAAE,OAAY;QAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAVD,4BAUC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './coluna';
|
|
2
|
+
export * from './condicao';
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./coluna"), exports);
|
|
18
|
+
__exportStar(require("./condicao"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/construtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Coluna } from "./coluna";
|
|
2
|
+
import { Restricao } from "./restricao";
|
|
3
|
+
export declare class OperacaoAlteracaoTabela {
|
|
4
|
+
tipo: 'ADICIONAR' | 'ALTERAR' | 'EXCLUIR' | 'RENOMEAR';
|
|
5
|
+
elemento: Coluna | Restricao;
|
|
6
|
+
constructor(tipo: string, elemento: Coluna | Restricao);
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperacaoAlteracaoTabela = void 0;
|
|
4
|
+
class OperacaoAlteracaoTabela {
|
|
5
|
+
constructor(tipo, elemento) {
|
|
6
|
+
const tipoOperacaoResolvido = tipo.toUpperCase();
|
|
7
|
+
if (!['ADICIONAR', 'ALTERAR', 'EXCLUIR', 'RENOMEAR'].includes(tipoOperacaoResolvido)) {
|
|
8
|
+
throw new Error(`Tipo de operação de alteração de tabela inválido: ${tipoOperacaoResolvido}`);
|
|
9
|
+
}
|
|
10
|
+
this.tipo = tipoOperacaoResolvido;
|
|
11
|
+
this.elemento = elemento;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.OperacaoAlteracaoTabela = OperacaoAlteracaoTabela;
|
|
15
|
+
//# sourceMappingURL=operacao-alteracao-tabela.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operacao-alteracao-tabela.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/construtos/operacao-alteracao-tabela.ts"],"names":[],"mappings":";;;AAGA,MAAa,uBAAuB;IAIhC,YACI,IAAY,EACZ,QAA4B;QAE5B,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACjD,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC;YACnF,MAAM,IAAI,KAAK,CAAC,qDAAqD,qBAAqB,EAAE,CAAC,CAAC;QAClG,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,qBAAyE,CAAC;QACtF,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAhBD,0DAgBC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uma restrição cria uma regra em uma tabela ou visão, que trabalha com uma ou mais colunas
|
|
3
|
+
* da mesma tabela e/ou de outras tabelass relacionadas.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Restricao {
|
|
6
|
+
nome: string;
|
|
7
|
+
tipo: 'CHAVE_PRIMARIA' | 'CHAVE_ESTRANGEIRA' | 'ÚNICA';
|
|
8
|
+
tabela: string;
|
|
9
|
+
colunas: string[];
|
|
10
|
+
tabelaReferenciada?: string;
|
|
11
|
+
colunasReferenciadas?: string[];
|
|
12
|
+
constructor(nome: string, tipo: 'CHAVE_PRIMARIA' | 'CHAVE_ESTRANGEIRA' | 'ÚNICA', tabela: string, colunas: string[], tabelaReferenciada?: string, colunasReferenciadas?: string[]);
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Restricao = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Uma restrição cria uma regra em uma tabela ou visão, que trabalha com uma ou mais colunas
|
|
6
|
+
* da mesma tabela e/ou de outras tabelass relacionadas.
|
|
7
|
+
*/
|
|
8
|
+
class Restricao {
|
|
9
|
+
constructor(nome, tipo, tabela, colunas, tabelaReferenciada, colunasReferenciadas) {
|
|
10
|
+
this.nome = nome;
|
|
11
|
+
this.tipo = tipo;
|
|
12
|
+
this.tabela = tabela;
|
|
13
|
+
this.colunas = colunas;
|
|
14
|
+
this.tabelaReferenciada = tabelaReferenciada;
|
|
15
|
+
this.colunasReferenciadas = colunasReferenciadas;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Restricao = Restricao;
|
|
19
|
+
//# sourceMappingURL=restricao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restricao.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/construtos/restricao.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAa,SAAS;IAQlB,YACI,IAAY,EACZ,IAAsD,EACtD,MAAc,EACd,OAAiB,EACjB,kBAA2B,EAC3B,oBAA+B;QAE/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACrD,CAAC;CACJ;AAvBD,8BAuBC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ErroAvaliadorSintatico } from '../avaliador-sintatico';
|
|
2
|
-
import { SimboloInterface } from './simbolo-interface';
|
|
3
|
-
export interface AvaliadorSintaticoInterface {
|
|
4
|
-
simbolos: SimboloInterface[];
|
|
5
|
-
erros: ErroAvaliadorSintatico[];
|
|
6
|
-
atual: number;
|
|
7
|
-
bloco: number;
|
|
8
|
-
consumir(tipo: string, mensagemDeErro: string): SimboloInterface;
|
|
9
|
-
estaNoFinal(): boolean;
|
|
10
|
-
verificarTipoSimboloAtual(tipo: string): boolean;
|
|
11
|
-
avancarEDevolverAnterior(): SimboloInterface;
|
|
12
|
-
erro(simbolo: SimboloInterface, mensagemDeErro: string): ErroAvaliadorSintatico;
|
|
13
|
-
verificarSeSimboloAtualEIgualA(...argumentos: string[]): boolean;
|
|
14
|
-
}
|
|
1
|
+
import { ErroAvaliadorSintatico } from '../avaliador-sintatico';
|
|
2
|
+
import { SimboloInterface } from './simbolo-interface';
|
|
3
|
+
export interface AvaliadorSintaticoInterface {
|
|
4
|
+
simbolos: SimboloInterface[];
|
|
5
|
+
erros: ErroAvaliadorSintatico[];
|
|
6
|
+
atual: number;
|
|
7
|
+
bloco: number;
|
|
8
|
+
consumir(tipo: string, mensagemDeErro: string): SimboloInterface;
|
|
9
|
+
estaNoFinal(): boolean;
|
|
10
|
+
verificarTipoSimboloAtual(tipo: string): boolean;
|
|
11
|
+
avancarEDevolverAnterior(): SimboloInterface;
|
|
12
|
+
erro(simbolo: SimboloInterface, mensagemDeErro: string): ErroAvaliadorSintatico;
|
|
13
|
+
verificarSeSimboloAtualEIgualA(...argumentos: string[]): boolean;
|
|
14
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=avaliador-sintatico-interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avaliador-sintatico-interface.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/interfaces/avaliador-sintatico-interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./avaliador-sintatico-interface"), exports);
|
|
18
|
+
__exportStar(require("./lincones-interface"), exports);
|
|
19
|
+
__exportStar(require("./simbolo-interface"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,uDAAqC;AACrC,sDAAoC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=lincones-interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lincones-interface.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/interfaces/lincones-interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { SimboloInterface } from '
|
|
2
|
-
import { ErroAvaliadorSintatico } from '../../avaliador-sintatico';
|
|
3
|
-
import { Comando } from '../../comandos';
|
|
4
|
-
export interface RetornoAvaliadorSintatico {
|
|
5
|
-
comandos: Comando[];
|
|
6
|
-
erros: ErroAvaliadorSintatico[];
|
|
7
|
-
}
|
|
8
|
-
export interface RetornoLexador {
|
|
9
|
-
simbolos: SimboloInterface[];
|
|
10
|
-
erros: ErroLexador[];
|
|
11
|
-
}
|
|
12
|
-
export interface ErroLexador {
|
|
13
|
-
linha: number;
|
|
14
|
-
caractere: string;
|
|
15
|
-
mensagem: string;
|
|
16
|
-
}
|
|
1
|
+
import { SimboloInterface } from '../simbolo-interface';
|
|
2
|
+
import { ErroAvaliadorSintatico } from '../../avaliador-sintatico';
|
|
3
|
+
import { Comando } from '../../comandos';
|
|
4
|
+
export interface RetornoAvaliadorSintatico {
|
|
5
|
+
comandos: Comando[];
|
|
6
|
+
erros: ErroAvaliadorSintatico[];
|
|
7
|
+
}
|
|
8
|
+
export interface RetornoLexador {
|
|
9
|
+
simbolos: SimboloInterface[];
|
|
10
|
+
erros: ErroLexador[];
|
|
11
|
+
}
|
|
12
|
+
export interface ErroLexador {
|
|
13
|
+
linha: number;
|
|
14
|
+
caractere: string;
|
|
15
|
+
mensagem: string;
|
|
16
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../fontes/comum/fontes/interfaces/retornos/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface SimboloInterface {
|
|
2
|
-
lexema: string;
|
|
3
|
-
tipo: string;
|
|
4
|
-
literal: string;
|
|
5
|
-
linha: number;
|
|
6
|
-
}
|
|
1
|
+
export interface SimboloInterface {
|
|
2
|
+
lexema: string;
|
|
3
|
+
tipo: string;
|
|
4
|
+
literal: string;
|
|
5
|
+
linha: number;
|
|
6
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=simbolo-interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simbolo-interface.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/interfaces/simbolo-interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lexador';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lexador"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../fontes/comum/fontes/lexador/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { SimboloInterface } from '../interfaces';
|
|
2
|
-
import { RetornoLexador } from '../interfaces/retornos';
|
|
3
|
-
export declare class Lexador {
|
|
4
|
-
inicioSimbolo: number;
|
|
5
|
-
atual: number;
|
|
6
|
-
linha: number;
|
|
7
|
-
codigo: string[];
|
|
8
|
-
simbolos: SimboloInterface[];
|
|
9
|
-
erros: any[];
|
|
10
|
-
eDigito(caractere: string): boolean;
|
|
11
|
-
eAlfabeto(caractere: string): boolean;
|
|
12
|
-
eAlfabetoOuDigito(caractere: string): boolean;
|
|
13
|
-
eFinalDoCodigo(): boolean;
|
|
14
|
-
eUltimaLinha(): boolean;
|
|
15
|
-
eFinalDaLinha(): boolean;
|
|
16
|
-
simboloAtual(): string;
|
|
17
|
-
avancar(): void;
|
|
18
|
-
proximoSimbolo(): string;
|
|
19
|
-
simboloAnterior(): string;
|
|
20
|
-
analisarNumero(): void;
|
|
21
|
-
analisarTexto(delimitador?: string): void;
|
|
22
|
-
adicionarSimbolo(tipo: string, literal?: any): void;
|
|
23
|
-
identificarPalavraChave(): void;
|
|
24
|
-
analisarToken(): void;
|
|
25
|
-
mapear(codigo: string[]): RetornoLexador;
|
|
26
|
-
}
|
|
1
|
+
import { SimboloInterface } from '../interfaces';
|
|
2
|
+
import { RetornoLexador } from '../interfaces/retornos';
|
|
3
|
+
export declare class Lexador {
|
|
4
|
+
inicioSimbolo: number;
|
|
5
|
+
atual: number;
|
|
6
|
+
linha: number;
|
|
7
|
+
codigo: string[];
|
|
8
|
+
simbolos: SimboloInterface[];
|
|
9
|
+
erros: any[];
|
|
10
|
+
eDigito(caractere: string): boolean;
|
|
11
|
+
eAlfabeto(caractere: string): boolean;
|
|
12
|
+
eAlfabetoOuDigito(caractere: string): boolean;
|
|
13
|
+
eFinalDoCodigo(): boolean;
|
|
14
|
+
eUltimaLinha(): boolean;
|
|
15
|
+
eFinalDaLinha(): boolean;
|
|
16
|
+
simboloAtual(): string;
|
|
17
|
+
avancar(): void;
|
|
18
|
+
proximoSimbolo(): string;
|
|
19
|
+
simboloAnterior(): string;
|
|
20
|
+
analisarNumero(): void;
|
|
21
|
+
analisarTexto(delimitador?: string): void;
|
|
22
|
+
adicionarSimbolo(tipo: string, literal?: any): void;
|
|
23
|
+
identificarPalavraChave(): void;
|
|
24
|
+
analisarToken(): void;
|
|
25
|
+
mapear(codigo: string[]): RetornoLexador;
|
|
26
|
+
}
|