@designliquido/delegua-node 1.5.4 → 1.5.6
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/bin/package.json +7 -7
- package/delegua.d.ts +1 -1
- package/delegua.js +1 -1
- package/execucao.js +1 -1
- package/execucao.js.map +1 -1
- package/formatadores/formatador-json.d.ts +7 -0
- package/formatadores/formatador-json.d.ts.map +1 -0
- package/formatadores/formatador-json.js +58 -0
- package/formatadores/formatador-json.js.map +1 -0
- package/formatadores/index.d.ts +1 -6
- package/formatadores/index.d.ts.map +1 -1
- package/formatadores/index.js +15 -55
- package/formatadores/index.js.map +1 -1
- package/importador/index.d.ts +1 -0
- package/importador/index.d.ts.map +1 -1
- package/importador/index.js +1 -0
- package/importador/index.js.map +1 -1
- package/interfaces/index.d.ts +2 -0
- package/interfaces/index.d.ts.map +1 -1
- package/interfaces/index.js +2 -0
- package/interfaces/index.js.map +1 -1
- package/interpretador/interpretador-com-importacao.js +1 -1
- package/interpretador/interpretador-com-importacao.js.map +1 -1
- package/lexador/index.d.ts +1 -0
- package/lexador/index.d.ts.map +1 -1
- package/lexador/index.js +17 -0
- package/lexador/index.js.map +1 -1
- package/package.json +7 -7
package/bin/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designliquido/delegua-node",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "Linguagem Delégua com capacidades para ecossistema Node.js.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"empacotar": "yarn rimraf ./dist && tsc && yarn copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && yarn copyfiles -V ./package.json ./dist/bin && yarn copyfiles -V ./README.md ./dist && yarn copyfiles -V ./LICENSE ./dist",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"testes:servidor-depuracao": "yarn ts-node ./fontes/depuracao/servidor-depuracao.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@designliquido/birl": "^0.1.
|
|
16
|
-
"@designliquido/delegua": "^0.41.
|
|
17
|
-
"@designliquido/mapler": "^0.1.
|
|
18
|
-
"@designliquido/portugol-studio": "^0.4.
|
|
19
|
-
"@designliquido/potigol": "^0.1.
|
|
20
|
-
"@designliquido/visualg": "^0.3.
|
|
15
|
+
"@designliquido/birl": "^0.1.19",
|
|
16
|
+
"@designliquido/delegua": "^0.41.8",
|
|
17
|
+
"@designliquido/mapler": "^0.1.20",
|
|
18
|
+
"@designliquido/portugol-studio": "^0.4.18",
|
|
19
|
+
"@designliquido/potigol": "^0.1.22",
|
|
20
|
+
"@designliquido/visualg": "^0.3.18",
|
|
21
21
|
"chalk": "4.1.2",
|
|
22
22
|
"commander": "^14.0.0",
|
|
23
23
|
"json-colorizer": "^3.0.1"
|
package/delegua.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AvaliadorSintaticoInterface, LexadorInterface } from '@designliquido/delegua/interfaces';
|
|
2
2
|
import { DeleguaInterface, ImportadorInterface } from './interfaces';
|
|
3
3
|
/**
|
|
4
|
-
* O núcleo
|
|
4
|
+
* O núcleo de execução e tradução de Delégua para Node.js.
|
|
5
5
|
*
|
|
6
6
|
* Responsável por avaliar a entrada fornecida, chamar o núcleo
|
|
7
7
|
* correspondente à operação solicitada e observar a execução.
|
package/delegua.js
CHANGED
|
@@ -39,7 +39,7 @@ const caminho = __importStar(require("path"));
|
|
|
39
39
|
const nucleo_execucao_1 = require("./nucleo-execucao");
|
|
40
40
|
const nucleo_traducao_1 = require("./nucleo-traducao");
|
|
41
41
|
/**
|
|
42
|
-
* O núcleo
|
|
42
|
+
* O núcleo de execução e tradução de Delégua para Node.js.
|
|
43
43
|
*
|
|
44
44
|
* Responsável por avaliar a entrada fornecida, chamar o núcleo
|
|
45
45
|
* correspondente à operação solicitada e observar a execução.
|
package/execucao.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const delegua_1 = require("./delegua");
|
|
4
3
|
const commander_1 = require("commander");
|
|
4
|
+
const delegua_1 = require("./delegua");
|
|
5
5
|
const principal = async () => {
|
|
6
6
|
const analisadorArgumentos = new commander_1.Command();
|
|
7
7
|
analisadorArgumentos;
|
package/execucao.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execucao.js","sourceRoot":"","sources":["../fontes/execucao.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"execucao.js","sourceRoot":"","sources":["../fontes/execucao.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AAEpC,uCAAoC;AAEpC,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE;IACzB,MAAM,oBAAoB,GAAG,IAAI,mBAAO,EAAE,CAAC;IAC3C,oBAAoB,CAAC;IACrB,IAAI,mBAAmB,GAAuB,SAAS,CAAC;IAExD,oBAAoB;SACf,UAAU,CAAC,aAAa,EAAE,+BAA+B,CAAC;SAC1D,MAAM,CACH,uBAAuB,EACvB,wBAAwB,EACxB,EAAE,CACL;SACA,MAAM,CACH,yBAAyB,EACzB,uCAAuC,EACvC,SAAS,CACZ;SACA,MAAM,CACH,iBAAiB,EACjB,4GAA4G,EAC5G,KAAK,CACR;SACA,MAAM,CACH,mBAAmB,EACnB,iEAAiE,EACjE,KAAK,CACR;SACA,MAAM,CACH,aAAa,EACb,4CAA4C,EAC5C,KAAK,CACR;SACA,MAAM,CACH,2CAA2C,EAC3C,6JAA6J,CAChK;SACA,MAAM,CACH,cAAc,EACd,6CAA6C,EAC7C,KAAK,CACR;SACA,QAAQ,CAAC,eAAe,EAAE,+BAA+B,CAAC;SAC1D,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE;QACnB,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,mBAAmB,GAAG,UAAU,CA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MAAM,CAAA;KAAE,EAAE,GAAG,MAAM;CAuDhE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormatadorJson = void 0;
|
|
4
|
+
class FormatadorJson {
|
|
5
|
+
formatar(simbolos) {
|
|
6
|
+
let resultado = "";
|
|
7
|
+
let indentacao = 0;
|
|
8
|
+
let anterior = undefined;
|
|
9
|
+
for (let elemento of simbolos) {
|
|
10
|
+
switch (elemento.type) {
|
|
11
|
+
case 'OPEN_BRACE':
|
|
12
|
+
if ((anterior === null || anterior === void 0 ? void 0 : anterior.type) === 'COLON') {
|
|
13
|
+
resultado += elemento.value + '\n';
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
resultado += ' '.repeat(indentacao) + elemento.value + '\n';
|
|
17
|
+
}
|
|
18
|
+
indentacao += 2;
|
|
19
|
+
break;
|
|
20
|
+
case 'OPEN_BRACKET':
|
|
21
|
+
resultado += ' '.repeat(indentacao) + elemento.value + '\n';
|
|
22
|
+
indentacao += 2;
|
|
23
|
+
break;
|
|
24
|
+
case 'CLOSE_BRACE':
|
|
25
|
+
indentacao -= 2;
|
|
26
|
+
resultado += '\n' + ' '.repeat(indentacao) + elemento.value;
|
|
27
|
+
break;
|
|
28
|
+
case 'CLOSE_BRACKET':
|
|
29
|
+
indentacao -= 2;
|
|
30
|
+
if ((anterior === null || anterior === void 0 ? void 0 : anterior.type) === 'CLOSE_BRACE') {
|
|
31
|
+
resultado += '\n' + ' '.repeat(indentacao) + elemento.value;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
resultado += '\n' + elemento.value;
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
case 'COMMA':
|
|
38
|
+
resultado += elemento.value + '\n';
|
|
39
|
+
break;
|
|
40
|
+
case 'COLON':
|
|
41
|
+
resultado += elemento.value + ' ';
|
|
42
|
+
break;
|
|
43
|
+
default:
|
|
44
|
+
if ((anterior === null || anterior === void 0 ? void 0 : anterior.type) === 'COLON') {
|
|
45
|
+
resultado += elemento.value;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
resultado += ' '.repeat(indentacao) + elemento.value;
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
anterior = elemento;
|
|
53
|
+
}
|
|
54
|
+
return resultado;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.FormatadorJson = FormatadorJson;
|
|
58
|
+
//# sourceMappingURL=formatador-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatador-json.js","sourceRoot":"","sources":["../../fontes/formatadores/formatador-json.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IACvB,QAAQ,CAAC,QAA2C;QAChD,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,IAAI,QAAQ,GAAG,SAAS,CAAC;QAEzB,KAAK,IAAI,QAAQ,IAAI,QAAQ,EAAE,CAAC;YAC5B,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,YAAY;oBACb,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,MAAK,OAAO,EAAE,CAAC;wBAC7B,SAAS,IAAI,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC;oBACvC,CAAC;yBAAM,CAAC;wBACJ,SAAS,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC;oBAChE,CAAC;oBAED,UAAU,IAAI,CAAC,CAAC;oBAChB,MAAM;gBACV,KAAK,cAAc;oBACf,SAAS,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC;oBAC5D,UAAU,IAAI,CAAC,CAAC;oBAChB,MA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"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/formatadores/index.js
CHANGED
|
@@ -1,58 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let indentacao = 0;
|
|
8
|
-
let anterior = undefined;
|
|
9
|
-
for (let elemento of simbolos) {
|
|
10
|
-
switch (elemento.type) {
|
|
11
|
-
case 'OPEN_BRACE':
|
|
12
|
-
if ((anterior === null || anterior === void 0 ? void 0 : anterior.type) === 'COLON') {
|
|
13
|
-
resultado += elemento.value + '\n';
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
resultado += ' '.repeat(indentacao) + elemento.value + '\n';
|
|
17
|
-
}
|
|
18
|
-
indentacao += 2;
|
|
19
|
-
break;
|
|
20
|
-
case 'OPEN_BRACKET':
|
|
21
|
-
resultado += ' '.repeat(indentacao) + elemento.value + '\n';
|
|
22
|
-
indentacao += 2;
|
|
23
|
-
break;
|
|
24
|
-
case 'CLOSE_BRACE':
|
|
25
|
-
indentacao -= 2;
|
|
26
|
-
resultado += '\n' + ' '.repeat(indentacao) + elemento.value;
|
|
27
|
-
break;
|
|
28
|
-
case 'CLOSE_BRACKET':
|
|
29
|
-
indentacao -= 2;
|
|
30
|
-
if ((anterior === null || anterior === void 0 ? void 0 : anterior.type) === 'CLOSE_BRACE') {
|
|
31
|
-
resultado += '\n' + ' '.repeat(indentacao) + elemento.value;
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
resultado += '\n' + elemento.value;
|
|
35
|
-
}
|
|
36
|
-
break;
|
|
37
|
-
case 'COMMA':
|
|
38
|
-
resultado += elemento.value + '\n';
|
|
39
|
-
break;
|
|
40
|
-
case 'COLON':
|
|
41
|
-
resultado += elemento.value + ' ';
|
|
42
|
-
break;
|
|
43
|
-
default:
|
|
44
|
-
if ((anterior === null || anterior === void 0 ? void 0 : anterior.type) === 'COLON') {
|
|
45
|
-
resultado += elemento.value;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
resultado += ' '.repeat(indentacao) + elemento.value;
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
anterior = elemento;
|
|
53
|
-
}
|
|
54
|
-
return resultado;
|
|
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]; } };
|
|
55
7
|
}
|
|
56
|
-
|
|
57
|
-
|
|
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("./formatador-json"), exports);
|
|
58
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
package/importador/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/importador/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/importador/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
package/importador/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./importador"), exports);
|
|
18
|
+
__exportStar(require("./importador-javascript"), exports);
|
|
18
19
|
__exportStar(require("./retorno-importador"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/importador/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/importador/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/importador/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,uDAAqC"}
|
package/interfaces/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC"}
|
package/interfaces/index.js
CHANGED
|
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./delegua-interface"), exports);
|
|
18
18
|
__exportStar(require("./importador-interface"), exports);
|
|
19
|
+
__exportStar(require("./interpretador-com-importacao-interface"), exports);
|
|
20
|
+
__exportStar(require("./nucleo-execucao-interface"), exports);
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
package/interfaces/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC;AACvC,2EAAyD;AACzD,8DAA4C"}
|
|
@@ -50,7 +50,7 @@ class InterpretadorComImportacao extends interpretador_1.Interpretador {
|
|
|
50
50
|
this.importador = importador;
|
|
51
51
|
}
|
|
52
52
|
async executar(declaracao, mostrarResultado = false) {
|
|
53
|
-
const resultado = super.executar(declaracao);
|
|
53
|
+
const resultado = await super.executar(declaracao);
|
|
54
54
|
if (mostrarResultado) {
|
|
55
55
|
this.funcaoDeRetorno(this.paraTexto(resultado));
|
|
56
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpretador-com-importacao.js","sourceRoot":"","sources":["../../fontes/interpretador/interpretador-com-importacao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wEAAqE;AAErE,kGAAqF;AAOrF,+CAAiC;AAEjC;;;GAGG;AACH,MAAa,0BACT,SAAQ,6BAAa;IAKrB,YACI,UAAiD,EACjD,aAAqB,EACrB,WAAW,GAAG,KAAK,EACnB,kBAA4B,IAAI,EAChC,4BAAsC,IAAI;QAE1C,KAAK,CAAC,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,yBAAyB,CAAC,CAAC;QAC9E,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEQ,KAAK,CAAC,QAAQ,CAAC,UAAsB,EAAE,gBAAgB,GAAG,KAAK;QACpE,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"interpretador-com-importacao.js","sourceRoot":"","sources":["../../fontes/interpretador/interpretador-com-importacao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wEAAqE;AAErE,kGAAqF;AAOrF,+CAAiC;AAEjC;;;GAGG;AACH,MAAa,0BACT,SAAQ,6BAAa;IAKrB,YACI,UAAiD,EACjD,aAAqB,EACrB,WAAW,GAAG,KAAK,EACnB,kBAA4B,IAAI,EAChC,4BAAsC,IAAI;QAE1C,KAAK,CAAC,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,yBAAyB,CAAC,CAAC;QAC9E,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEQ,KAAK,CAAC,QAAQ,CAAC,UAAsB,EAAE,gBAAgB,GAAG,KAAK;QACpE,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAEnD,IAAI,gBAAgB,EAAE,CAAC;YACnB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,SAAS,IAAI,OAAO,SAAS,KAAK,oBAAqB,CAAC,QAAQ,EAAE,CAAC;YACnE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;QAChE,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,kCAAkC,CAAC,kBAAsC;QAC3E,OAAO,KAAK,CAAC,kCAAkC,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAC9E,CAAC;IAEQ,KAAK,CAAC,gCAAgC,CAAC,gBAAkC;QAC9E,OAAO,KAAK,CAAC,gCAAgC,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,kCAAkC,CAAC,UAA6B;QAClE,OAAO,KAAK,CAAC,kCAAkC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACtE,CAAC;CACJ;AA1CD,gEA0CC"}
|
package/lexador/index.d.ts
CHANGED
package/lexador/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/lexador/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/lexador/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
package/lexador/index.js
CHANGED
|
@@ -1 +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("./lexador-json"), exports);
|
|
1
18
|
//# sourceMappingURL=index.js.map
|
package/lexador/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/lexador/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/lexador/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designliquido/delegua-node",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "Linguagem Delégua com capacidades para ecossistema Node.js.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"empacotar": "yarn rimraf ./dist && tsc && yarn copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && yarn copyfiles -V ./package.json ./dist/bin && yarn copyfiles -V ./README.md ./dist && yarn copyfiles -V ./LICENSE ./dist",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"testes:servidor-depuracao": "yarn ts-node ./fontes/depuracao/servidor-depuracao.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@designliquido/birl": "^0.1.
|
|
16
|
-
"@designliquido/delegua": "^0.41.
|
|
17
|
-
"@designliquido/mapler": "^0.1.
|
|
18
|
-
"@designliquido/portugol-studio": "^0.4.
|
|
19
|
-
"@designliquido/potigol": "^0.1.
|
|
20
|
-
"@designliquido/visualg": "^0.3.
|
|
15
|
+
"@designliquido/birl": "^0.1.19",
|
|
16
|
+
"@designliquido/delegua": "^0.41.8",
|
|
17
|
+
"@designliquido/mapler": "^0.1.20",
|
|
18
|
+
"@designliquido/portugol-studio": "^0.4.18",
|
|
19
|
+
"@designliquido/potigol": "^0.1.22",
|
|
20
|
+
"@designliquido/visualg": "^0.3.18",
|
|
21
21
|
"chalk": "4.1.2",
|
|
22
22
|
"commander": "^14.0.0",
|
|
23
23
|
"json-colorizer": "^3.0.1"
|