@designliquido/delegua 0.7.6 → 0.8.1
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 +78 -65
- package/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +63 -0
- package/fontes/avaliador-sintatico/avaliador-sintatico-base.js +180 -0
- package/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -0
- package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +5 -4
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +189 -188
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.d.ts +34 -32
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +154 -148
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js.map +1 -1
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.d.ts +13 -12
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js +144 -142
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js.map +1 -1
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.d.ts +48 -0
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js +297 -0
- package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js.map +1 -0
- package/fontes/avaliador-sintatico/erro-avaliador-sintatico.d.ts +1 -1
- package/fontes/avaliador-sintatico/retornos/index.d.ts +3 -0
- package/fontes/avaliador-sintatico/retornos/index.js +20 -0
- package/fontes/avaliador-sintatico/retornos/index.js.map +1 -0
- package/fontes/avaliador-sintatico/retornos/retorno-declaracao.d.ts +3 -0
- package/fontes/avaliador-sintatico/retornos/retorno-declaracao.js +3 -0
- package/fontes/avaliador-sintatico/retornos/retorno-declaracao.js.map +1 -0
- package/fontes/avaliador-sintatico/retornos/retorno-primario.d.ts +3 -0
- package/fontes/avaliador-sintatico/retornos/retorno-primario.js +3 -0
- package/fontes/avaliador-sintatico/retornos/retorno-primario.js.map +1 -0
- package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.d.ts +2 -0
- package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.js +3 -0
- package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.js.map +1 -0
- package/fontes/bibliotecas/biblioteca-global.d.ts +2 -2
- package/fontes/bibliotecas/biblioteca-global.js +112 -57
- package/fontes/bibliotecas/biblioteca-global.js.map +1 -1
- package/fontes/bibliotecas/importar-biblioteca.d.ts +1 -1
- package/fontes/bibliotecas/importar-biblioteca.js +13 -14
- package/fontes/bibliotecas/importar-biblioteca.js.map +1 -1
- package/fontes/bibliotecas/primitivas-texto.js +13 -7
- package/fontes/bibliotecas/primitivas-texto.js.map +1 -1
- package/fontes/bibliotecas/primitivas-vetor.js +25 -11
- package/fontes/bibliotecas/primitivas-vetor.js.map +1 -1
- package/fontes/construtos/acesso-indice-variavel.d.ts +2 -2
- package/fontes/construtos/acesso-indice-variavel.js.map +1 -1
- package/fontes/construtos/acesso-metodo.d.ts +2 -2
- package/fontes/construtos/acesso-metodo.js.map +1 -1
- package/fontes/construtos/agrupamento.d.ts +2 -2
- package/fontes/construtos/atribuicao-sobrescrita.d.ts +1 -1
- package/fontes/construtos/atribuicao-sobrescrita.js.map +1 -1
- package/fontes/construtos/atribuir.d.ts +2 -2
- package/fontes/construtos/atribuir.js.map +1 -1
- package/fontes/construtos/binario.d.ts +2 -2
- package/fontes/construtos/binario.js.map +1 -1
- package/fontes/construtos/chamada.d.ts +2 -2
- package/fontes/construtos/chamada.js.map +1 -1
- package/fontes/construtos/conjunto.d.ts +1 -1
- package/fontes/construtos/conjunto.js.map +1 -1
- package/fontes/construtos/construto.d.ts +1 -0
- package/fontes/construtos/dicionario.d.ts +1 -1
- package/fontes/construtos/dicionario.js.map +1 -1
- package/fontes/construtos/funcao.d.ts +2 -2
- package/fontes/construtos/funcao.js.map +1 -1
- package/fontes/construtos/index.d.ts +18 -18
- package/fontes/construtos/isto.d.ts +1 -1
- package/fontes/construtos/isto.js.map +1 -1
- package/fontes/construtos/literal.d.ts +5 -4
- package/fontes/construtos/literal.js.map +1 -1
- package/fontes/construtos/logico.d.ts +1 -1
- package/fontes/construtos/logico.js.map +1 -1
- package/fontes/construtos/super.d.ts +4 -4
- package/fontes/construtos/super.js.map +1 -1
- package/fontes/construtos/unario.d.ts +1 -1
- package/fontes/construtos/unario.js.map +1 -1
- package/fontes/construtos/variavel.d.ts +2 -2
- package/fontes/construtos/variavel.js.map +1 -1
- package/fontes/construtos/vetor.d.ts +3 -3
- package/fontes/construtos/vetor.js.map +1 -1
- package/fontes/declaracoes/bloco.d.ts +4 -4
- package/fontes/declaracoes/bloco.js.map +1 -1
- package/fontes/declaracoes/classe.d.ts +2 -2
- package/fontes/declaracoes/classe.js.map +1 -1
- package/fontes/declaracoes/continua.d.ts +2 -2
- package/fontes/declaracoes/continua.js.map +1 -1
- package/fontes/declaracoes/declaracao.js +2 -2
- package/fontes/declaracoes/declaracao.js.map +1 -1
- package/fontes/declaracoes/enquanto.d.ts +2 -2
- package/fontes/declaracoes/enquanto.js.map +1 -1
- package/fontes/declaracoes/escolha.d.ts +7 -4
- package/fontes/declaracoes/escolha.js +6 -3
- package/fontes/declaracoes/escolha.js.map +1 -1
- package/fontes/declaracoes/escreva.d.ts +3 -3
- package/fontes/declaracoes/escreva.js.map +1 -1
- package/fontes/declaracoes/expressao.d.ts +3 -3
- package/fontes/declaracoes/expressao.js.map +1 -1
- package/fontes/declaracoes/fazer.d.ts +1 -1
- package/fontes/declaracoes/fazer.js.map +1 -1
- package/fontes/declaracoes/funcao.d.ts +2 -2
- package/fontes/declaracoes/funcao.js.map +1 -1
- package/fontes/declaracoes/importar.d.ts +2 -2
- package/fontes/declaracoes/importar.js.map +1 -1
- package/fontes/declaracoes/index.d.ts +1 -0
- package/fontes/declaracoes/index.js +1 -0
- package/fontes/declaracoes/index.js.map +1 -1
- package/fontes/declaracoes/leia.d.ts +12 -0
- package/fontes/declaracoes/leia.js +37 -0
- package/fontes/declaracoes/leia.js.map +1 -0
- package/fontes/declaracoes/para.d.ts +1 -1
- package/fontes/declaracoes/para.js.map +1 -1
- package/fontes/declaracoes/retorna.d.ts +2 -2
- package/fontes/declaracoes/retorna.js.map +1 -1
- package/fontes/declaracoes/se.d.ts +2 -2
- package/fontes/declaracoes/se.js.map +1 -1
- package/fontes/declaracoes/sustar.d.ts +2 -2
- package/fontes/declaracoes/sustar.js.map +1 -1
- package/fontes/declaracoes/tente.d.ts +2 -2
- package/fontes/declaracoes/tente.js.map +1 -1
- package/fontes/declaracoes/var.d.ts +5 -4
- package/fontes/declaracoes/var.js.map +1 -1
- package/fontes/delegua.d.ts +3 -3
- package/fontes/delegua.js +38 -22
- package/fontes/delegua.js.map +1 -1
- package/fontes/depuracao/cyrb53.js +6 -3
- package/fontes/depuracao/cyrb53.js.map +1 -1
- package/fontes/depuracao/servidor-depuracao.js +84 -46
- package/fontes/depuracao/servidor-depuracao.js.map +1 -1
- package/fontes/espaco-variaveis.d.ts +1 -1
- package/fontes/espaco-variaveis.js +0 -1
- package/fontes/espaco-variaveis.js.map +1 -1
- package/fontes/estruturas/chamavel.js +1 -1
- package/fontes/estruturas/classe-padrao.d.ts +1 -1
- package/fontes/estruturas/classe-padrao.js.map +1 -1
- package/fontes/estruturas/delegua-classe.d.ts +4 -4
- package/fontes/estruturas/delegua-classe.js +5 -3
- package/fontes/estruturas/delegua-classe.js.map +1 -1
- package/fontes/estruturas/funcao-padrao.d.ts +1 -1
- package/fontes/estruturas/funcao-padrao.js +1 -1
- package/fontes/estruturas/funcao.d.ts +4 -4
- package/fontes/estruturas/funcao.js +9 -4
- package/fontes/estruturas/funcao.js.map +1 -1
- package/fontes/estruturas/index.d.ts +9 -9
- package/fontes/estruturas/metodo-primitiva.d.ts +1 -1
- package/fontes/estruturas/modulo.d.ts +1 -1
- package/fontes/estruturas/modulo.js +1 -1
- package/fontes/estruturas/objeto-delegua-classe.d.ts +2 -2
- package/fontes/estruturas/objeto-delegua-classe.js +2 -2
- package/fontes/estruturas/objeto-delegua-classe.js.map +1 -1
- package/fontes/estruturas/objeto-padrao.js.map +1 -1
- package/fontes/excecoes/erro-em-tempo-de-execucao.d.ts +1 -1
- package/fontes/excecoes/erro-em-tempo-de-execucao.js.map +1 -1
- package/fontes/excecoes/index.d.ts +1 -1
- package/fontes/importador/importador.d.ts +1 -1
- package/fontes/importador/importador.js +3 -2
- package/fontes/importador/importador.js.map +1 -1
- package/fontes/importador/retorno-importador.d.ts +2 -2
- package/fontes/interfaces/avaliador-sintatico-interface.d.ts +3 -5
- package/fontes/interfaces/delegua-interface.d.ts +2 -2
- package/fontes/interfaces/escopo-execucao.d.ts +2 -2
- package/fontes/interfaces/importador-interface.d.ts +1 -1
- package/fontes/interfaces/interpretador-com-depuracao-interface.d.ts +3 -3
- package/fontes/interfaces/interpretador-interface.d.ts +8 -7
- package/fontes/interfaces/lexador-interface.d.ts +4 -4
- package/fontes/interfaces/parametro-interface.d.ts +1 -1
- package/fontes/interfaces/pilha-escopos-execucao-interface.d.ts +5 -5
- package/fontes/interfaces/resolvedor-interface.d.ts +5 -5
- package/fontes/interfaces/retornos/retorno-avaliador-sintatico.d.ts +2 -2
- package/fontes/interfaces/retornos/retorno-execucao-interface.d.ts +1 -1
- package/fontes/interfaces/retornos/retorno-interpretador.d.ts +1 -1
- package/fontes/interfaces/retornos/retorno-lexador.d.ts +3 -3
- package/fontes/interfaces/variavel-interface.d.ts +1 -1
- package/fontes/interpretador/dialetos/egua-classico.d.ts +2 -1
- package/fontes/interpretador/dialetos/egua-classico.js +75 -47
- package/fontes/interpretador/dialetos/egua-classico.js.map +1 -1
- package/fontes/interpretador/dialetos/index.js.map +1 -1
- package/fontes/interpretador/erro-interpretador.d.ts +1 -1
- package/fontes/interpretador/inferenciador.js.map +1 -1
- package/fontes/interpretador/interpretador-com-depuracao.js +5 -3
- package/fontes/interpretador/interpretador-com-depuracao.js.map +1 -1
- package/fontes/interpretador/interpretador.d.ts +10 -4
- package/fontes/interpretador/interpretador.js +57 -47
- package/fontes/interpretador/interpretador.js.map +1 -1
- package/fontes/interpretador/pilha-escopos-execucao.js +16 -5
- package/fontes/interpretador/pilha-escopos-execucao.js.map +1 -1
- package/fontes/lexador/dialetos/index.js.map +1 -1
- package/fontes/lexador/dialetos/lexador-birl.d.ts +25 -0
- package/fontes/lexador/dialetos/lexador-birl.js +75 -0
- package/fontes/lexador/dialetos/lexador-birl.js.map +1 -0
- package/fontes/lexador/dialetos/lexador-egua-classico.js +38 -38
- package/fontes/lexador/dialetos/lexador-egua-classico.js.map +1 -1
- package/fontes/lexador/dialetos/lexador-eguap.d.ts +4 -4
- package/fontes/lexador/dialetos/lexador-eguap.js +50 -44
- package/fontes/lexador/dialetos/lexador-eguap.js.map +1 -1
- package/fontes/lexador/dialetos/lexador-visualg.d.ts +16 -0
- package/fontes/lexador/dialetos/lexador-visualg.js +227 -0
- package/fontes/lexador/dialetos/lexador-visualg.js.map +1 -0
- package/fontes/lexador/dialetos/palavras-reservadas/birl.d.ts +2 -0
- package/fontes/lexador/dialetos/palavras-reservadas/birl.js +4 -0
- package/fontes/lexador/dialetos/palavras-reservadas/birl.js.map +1 -0
- package/fontes/lexador/dialetos/palavras-reservadas/visualg.d.ts +26 -0
- package/fontes/lexador/dialetos/palavras-reservadas/visualg.js +32 -0
- package/fontes/lexador/dialetos/palavras-reservadas/visualg.js.map +1 -0
- package/fontes/lexador/lexador-base-linha-unica.d.ts +33 -0
- package/fontes/lexador/lexador-base-linha-unica.js +92 -0
- package/fontes/lexador/lexador-base-linha-unica.js.map +1 -0
- package/fontes/lexador/lexador.d.ts +3 -3
- package/fontes/lexador/lexador.js +43 -43
- package/fontes/lexador/lexador.js.map +1 -1
- package/fontes/lexador/palavras-reservadas.js +33 -33
- package/fontes/lexador/palavras-reservadas.js.map +1 -1
- package/fontes/lexador/simbolo.d.ts +1 -1
- package/fontes/lexador/simbolo.js +1 -1
- package/fontes/lexador/simbolo.js.map +1 -1
- package/fontes/quebras/index.js.map +1 -1
- package/fontes/resolvedor/dialetos/egua-classico.js +1 -1
- package/fontes/resolvedor/dialetos/egua-classico.js.map +1 -1
- package/fontes/resolvedor/dialetos/index.js.map +1 -1
- package/fontes/resolvedor/erro-resolvedor.d.ts +1 -1
- package/fontes/resolvedor/pilha-escopos.d.ts +1 -1
- package/fontes/resolvedor/pilha-escopos.js +2 -2
- package/fontes/resolvedor/pilha-escopos.js.map +1 -1
- package/fontes/resolvedor/retorno-resolvedor.d.ts +2 -2
- package/fontes/tipos-de-simbolos/birl.d.ts +18 -0
- package/fontes/tipos-de-simbolos/birl.js +21 -0
- package/fontes/tipos-de-simbolos/birl.js.map +1 -0
- package/fontes/tipos-de-simbolos/comum.d.ts +18 -0
- package/fontes/tipos-de-simbolos/comum.js +20 -0
- package/fontes/tipos-de-simbolos/comum.js.map +1 -0
- package/fontes/{tipos-de-simbolos.d.ts → tipos-de-simbolos/delegua.d.ts} +0 -0
- package/fontes/tipos-de-simbolos/delegua.js +78 -0
- package/fontes/tipos-de-simbolos/delegua.js.map +1 -0
- package/fontes/{lexador/dialetos/tipos-de-simbolos-eguap.d.ts → tipos-de-simbolos/eguap.d.ts} +0 -0
- package/fontes/tipos-de-simbolos/eguap.js +74 -0
- package/fontes/tipos-de-simbolos/eguap.js.map +1 -0
- package/fontes/tipos-de-simbolos/visualg.d.ts +47 -0
- package/fontes/tipos-de-simbolos/visualg.js +49 -0
- package/fontes/tipos-de-simbolos/visualg.js.map +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/jest.config.js +2 -2
- package/jest.config.js.map +1 -1
- package/package.json +78 -65
- package/testes/avaliador-sintatico.test.js +5 -5
- package/testes/avaliador-sintatico.test.js.map +1 -1
- package/testes/egua-classico/avaliador-sintatico.test.js +4 -1
- package/testes/egua-classico/avaliador-sintatico.test.js.map +1 -1
- package/testes/egua-classico/delegua.test.js.map +1 -1
- package/testes/egua-classico/resolvedor.test.js.map +1 -1
- package/testes/eguap/avaliador-sintatico.test.js +1 -5
- package/testes/eguap/avaliador-sintatico.test.js.map +1 -1
- package/testes/eguap/lexador.test.js +1 -1
- package/testes/eguap/lexador.test.js.map +1 -1
- package/testes/interpretador.test.js +48 -0
- package/testes/interpretador.test.js.map +1 -1
- package/testes/lexador.test.js +45 -45
- package/testes/lexador.test.js.map +1 -1
- package/testes/visualg/avaliador-sintatico.test.d.ts +1 -0
- package/testes/visualg/avaliador-sintatico.test.js +113 -0
- package/testes/visualg/avaliador-sintatico.test.js.map +1 -0
- package/testes/visualg/lexador.test.d.ts +1 -0
- package/testes/visualg/lexador.test.js +67 -0
- package/testes/visualg/lexador.test.js.map +1 -0
- package/fontes/lexador/dialetos/tipos-de-simbolos-eguap.js +0 -74
- package/fontes/lexador/dialetos/tipos-de-simbolos-eguap.js.map +0 -1
- package/fontes/tipos-de-simbolos.js +0 -78
- package/fontes/tipos-de-simbolos.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dicionario.js","sourceRoot":"","sources":["../../../fontes/construtos/dicionario.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"dicionario.js","sourceRoot":"","sources":["../../../fontes/construtos/dicionario.ts"],"names":[],"mappings":";;;AAEA;IAOI,oBAAY,WAAmB,EAAE,KAAa,EAAE,MAAW,EAAE,OAAY;QACrE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,4BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACL,iBAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,gCAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface, ParametroInterface } from
|
|
2
|
-
import { Construto } from
|
|
1
|
+
import { InterpretadorInterface, ParametroInterface } from '../interfaces';
|
|
2
|
+
import { Construto } from './construto';
|
|
3
3
|
export declare class Funcao implements Construto {
|
|
4
4
|
linha: number;
|
|
5
5
|
hashArquivo?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/construtos/funcao.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/construtos/funcao.ts"],"names":[],"mappings":";;;AAGA;IAOI,gBACI,WAAmB,EACnB,KAAa,EACb,UAAgC,EAChC,KAAU;QAEV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IACL,aAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,wBAAM"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
1
|
+
export * from './atribuicao-sobrescrita';
|
|
2
|
+
export * from './atribuir';
|
|
3
|
+
export * from './binario';
|
|
4
|
+
export * from './chamada';
|
|
5
|
+
export * from './conjunto';
|
|
6
|
+
export * from './dicionario';
|
|
7
|
+
export * from './construto';
|
|
8
|
+
export * from './funcao';
|
|
9
|
+
export * from './acesso-metodo';
|
|
10
|
+
export * from './agrupamento';
|
|
11
|
+
export * from './isto';
|
|
12
|
+
export * from './literal';
|
|
13
|
+
export * from './logico';
|
|
14
|
+
export * from './acesso-indice-variavel';
|
|
15
|
+
export * from './super';
|
|
16
|
+
export * from './unario';
|
|
17
|
+
export * from './variavel';
|
|
18
|
+
export * from './vetor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isto.js","sourceRoot":"","sources":["../../../fontes/construtos/isto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"isto.js","sourceRoot":"","sources":["../../../fontes/construtos/isto.ts"],"names":[],"mappings":";;;AAEA;IAMI,cAAY,WAAmB,EAAE,KAAa,EAAE,YAAkB;QAC9D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAED,sBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,WAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,oBAAI"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { InterpretadorInterface } from
|
|
2
|
-
import { Construto } from
|
|
1
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
2
|
+
import { Construto } from './construto';
|
|
3
|
+
export declare type ValorLiteral = number | string | number[] | string[] | any;
|
|
3
4
|
export declare class Literal implements Construto {
|
|
4
5
|
linha: number;
|
|
5
6
|
hashArquivo?: number;
|
|
6
|
-
valor:
|
|
7
|
-
constructor(hashArquivo: number, linha: number, valor:
|
|
7
|
+
valor: ValorLiteral;
|
|
8
|
+
constructor(hashArquivo: number, linha: number, valor: ValorLiteral);
|
|
8
9
|
aceitar(visitante: InterpretadorInterface): any;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../fontes/construtos/literal.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../fontes/construtos/literal.ts"],"names":[],"mappings":";;;AAKA;IAMI,iBAAY,WAAmB,EAAE,KAAa,EAAE,KAAmB;QAC/D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,0BAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logico.js","sourceRoot":"","sources":["../../../fontes/construtos/logico.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"logico.js","sourceRoot":"","sources":["../../../fontes/construtos/logico.ts"],"names":[],"mappings":";;;AAEA;IAQI,gBACI,WAAmB,EACnB,QAAa,EACb,QAAa,EACb,OAAY;QAEZ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,wBAAM"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SimboloInterface } from
|
|
2
|
-
import { Construto } from
|
|
1
|
+
import { SimboloInterface } from '../interfaces';
|
|
2
|
+
import { Construto } from './construto';
|
|
3
3
|
export declare class Super implements Construto {
|
|
4
4
|
linha: number;
|
|
5
5
|
hashArquivo?: number;
|
|
6
6
|
simboloChave: SimboloInterface;
|
|
7
|
-
metodo:
|
|
8
|
-
constructor(hashArquivo: number, simboloChave: SimboloInterface, metodo:
|
|
7
|
+
metodo: SimboloInterface;
|
|
8
|
+
constructor(hashArquivo: number, simboloChave: SimboloInterface, metodo: SimboloInterface);
|
|
9
9
|
aceitar(visitante: any): any;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super.js","sourceRoot":"","sources":["../../../fontes/construtos/super.ts"],"names":[],"mappings":";;;AAGA;IAOI,
|
|
1
|
+
{"version":3,"file":"super.js","sourceRoot":"","sources":["../../../fontes/construtos/super.ts"],"names":[],"mappings":";;;AAGA;IAOI,eACI,WAAmB,EACnB,YAA8B,EAC9B,MAAwB;QAExB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,sBAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unario.js","sourceRoot":"","sources":["../../../fontes/construtos/unario.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"unario.js","sourceRoot":"","sources":["../../../fontes/construtos/unario.ts"],"names":[],"mappings":";;;AAEA;IAOI,gBAAY,WAAmB,EAAE,QAAa,EAAE,OAAY;QACxD,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,wBAAM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface, SimboloInterface, VariavelInterface } from
|
|
2
|
-
import { Construto } from
|
|
1
|
+
import { InterpretadorInterface, SimboloInterface, VariavelInterface } from '../interfaces';
|
|
2
|
+
import { Construto } from './construto';
|
|
3
3
|
export declare class Variavel implements Construto {
|
|
4
4
|
linha: number;
|
|
5
5
|
hashArquivo?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variavel.js","sourceRoot":"","sources":["../../../fontes/construtos/variavel.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"variavel.js","sourceRoot":"","sources":["../../../fontes/construtos/variavel.ts"],"names":[],"mappings":";;;AAOA;IAMI,kBAAY,WAAmB,EAAE,OAAyB;QACtD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACL,eAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,4BAAQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Construto } from
|
|
1
|
+
import { Construto } from './construto';
|
|
2
2
|
export declare class Vetor implements Construto {
|
|
3
3
|
linha: number;
|
|
4
4
|
hashArquivo?: number;
|
|
5
|
-
valores: any;
|
|
6
|
-
constructor(hashArquivo: number, linha: number, valores: any);
|
|
5
|
+
valores: any[];
|
|
6
|
+
constructor(hashArquivo: number, linha: number, valores: any[]);
|
|
7
7
|
aceitar(visitante: any): any;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetor.js","sourceRoot":"","sources":["../../../fontes/construtos/vetor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"vetor.js","sourceRoot":"","sources":["../../../fontes/construtos/vetor.ts"],"names":[],"mappings":";;;AAEA;IAMI,eAAY,WAAmB,EAAE,KAAa,EAAE,OAAc;QAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,sBAAK"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InterpretadorInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Bloco extends Declaracao {
|
|
4
|
-
declaracoes: any;
|
|
5
|
-
constructor(hashArquivo: number, linha: number, declaracoes: any);
|
|
4
|
+
declaracoes: any[];
|
|
5
|
+
constructor(hashArquivo: number, linha: number, declaracoes: any[]);
|
|
6
6
|
aceitar(visitante: InterpretadorInterface): any;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bloco.js","sourceRoot":"","sources":["../../../fontes/declaracoes/bloco.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"bloco.js","sourceRoot":"","sources":["../../../fontes/declaracoes/bloco.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA2B,yBAAU;IAGjC,eAAY,WAAmB,EAAE,KAAa,EAAE,WAAkB;QAAlE,YACI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAE5B;QADG,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;IACnC,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAXD,CAA2B,uBAAU,GAWpC;AAXY,sBAAK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SimboloInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { SimboloInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Classe extends Declaracao {
|
|
4
4
|
simbolo: SimboloInterface;
|
|
5
5
|
superClasse: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classe.js","sourceRoot":"","sources":["../../../fontes/declaracoes/classe.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"classe.js","sourceRoot":"","sources":["../../../fontes/declaracoes/classe.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA4B,0BAAU;IAKlC,gBAAY,OAAyB,EAAE,WAAgB,EAAE,OAAY;QAArE,YACI,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,SAIpD;QAHG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IAC3B,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAfD,CAA4B,uBAAU,GAerC;AAfY,wBAAM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SimboloInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { SimboloInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Continua extends Declaracao {
|
|
4
4
|
constructor(simbolo: SimboloInterface);
|
|
5
5
|
aceitar(visitante: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continua.js","sourceRoot":"","sources":["../../../fontes/declaracoes/continua.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"continua.js","sourceRoot":"","sources":["../../../fontes/declaracoes/continua.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA8B,4BAAU;IACpC,kBAAY,OAAyB;eACjC,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;IACrD,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AARD,CAA8B,uBAAU,GAQvC;AARY,4BAAQ"}
|
|
@@ -6,9 +6,9 @@ var Declaracao = /** @class */ (function () {
|
|
|
6
6
|
this.linha = linha;
|
|
7
7
|
this.hashArquivo = hashArquivo;
|
|
8
8
|
// TODO: Por ora, todos os testes são feitos num script só.
|
|
9
|
-
// Quando iniciarem os testes em múltiplos arquivos e módulos,
|
|
9
|
+
// Quando iniciarem os testes em múltiplos arquivos e módulos,
|
|
10
10
|
// pensar numa forma melhor de preencher isso.
|
|
11
|
-
this.assinaturaMetodo =
|
|
11
|
+
this.assinaturaMetodo = '<principal>';
|
|
12
12
|
}
|
|
13
13
|
Declaracao.prototype.aceitar = function (visitante) {
|
|
14
14
|
throw new Error('Este método não deveria ser chamado.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaracao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/declaracao.ts"],"names":[],"mappings":";;;AAAA;IAKI,oBAAY,KAAa,EAAE,WAAmB;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,2DAA2D;QAC3D
|
|
1
|
+
{"version":3,"file":"declaracao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/declaracao.ts"],"names":[],"mappings":";;;AAAA;IAKI,oBAAY,KAAa,EAAE,WAAmB;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,2DAA2D;QAC3D,8DAA8D;QAC9D,8CAA8C;QAC9C,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC;IAC1C,CAAC;IAED,4BAAO,GAAP,UAAQ,SAAc;QAClB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC5D,CAAC;IACL,iBAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBY,gCAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enquanto.js","sourceRoot":"","sources":["../../../fontes/declaracoes/enquanto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"enquanto.js","sourceRoot":"","sources":["../../../fontes/declaracoes/enquanto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA8B,4BAAU;IAIpC,kBAAY,QAAmB,EAAE,KAAU;QAA3C,YACI,kBAAM,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,SAG9C;QAFG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,uBAAU,GAavC;AAbY,4BAAQ"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { Construto } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { Construto } from '../construtos';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
|
+
/**
|
|
4
|
+
* Declaração de escolha de caminho a executar de acordo com literal ou identificador.
|
|
5
|
+
*/
|
|
3
6
|
export declare class Escolha extends Declaracao {
|
|
4
|
-
|
|
7
|
+
identificadorOuLiteral: Construto;
|
|
5
8
|
caminhos: any;
|
|
6
9
|
caminhoPadrao: any;
|
|
7
|
-
constructor(
|
|
10
|
+
constructor(identificadorOuLiteral: Construto, caminhos: any, caminhoPadrao: any);
|
|
8
11
|
aceitar(visitante: any): any;
|
|
9
12
|
}
|
|
@@ -17,11 +17,14 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.Escolha = void 0;
|
|
19
19
|
var declaracao_1 = require("./declaracao");
|
|
20
|
+
/**
|
|
21
|
+
* Declaração de escolha de caminho a executar de acordo com literal ou identificador.
|
|
22
|
+
*/
|
|
20
23
|
var Escolha = /** @class */ (function (_super) {
|
|
21
24
|
__extends(Escolha, _super);
|
|
22
|
-
function Escolha(
|
|
23
|
-
var _this = _super.call(this,
|
|
24
|
-
_this.
|
|
25
|
+
function Escolha(identificadorOuLiteral, caminhos, caminhoPadrao) {
|
|
26
|
+
var _this = _super.call(this, identificadorOuLiteral.linha, identificadorOuLiteral.hashArquivo) || this;
|
|
27
|
+
_this.identificadorOuLiteral = identificadorOuLiteral;
|
|
25
28
|
_this.caminhos = caminhos;
|
|
26
29
|
_this.caminhoPadrao = caminhoPadrao;
|
|
27
30
|
return _this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escolha.js","sourceRoot":"","sources":["../../../fontes/declaracoes/escolha.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"escolha.js","sourceRoot":"","sources":["../../../fontes/declaracoes/escolha.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;;GAEG;AACH;IAA6B,2BAAU;IAKnC,iBACI,sBAAiC,EACjC,QAAa,EACb,aAAkB;QAHtB,YAKI,kBAAM,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,CAAC,WAAW,CAAC,SAI1E;QAHG,KAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;;IACvC,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAnBD,CAA6B,uBAAU,GAmBtC;AAnBY,0BAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Construto } from
|
|
2
|
-
import { InterpretadorInterface } from
|
|
3
|
-
import { Declaracao } from
|
|
1
|
+
import { Construto } from '../construtos';
|
|
2
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
3
|
+
import { Declaracao } from './declaracao';
|
|
4
4
|
export declare class Escreva extends Declaracao {
|
|
5
5
|
argumentos: Construto[];
|
|
6
6
|
constructor(linha: number, hashArquivo: number, argumentos: Construto[]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escreva.js","sourceRoot":"","sources":["../../../fontes/declaracoes/escreva.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"escreva.js","sourceRoot":"","sources":["../../../fontes/declaracoes/escreva.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;IAA6B,2BAAU;IAGnC,iBAAY,KAAa,EAAE,WAAmB,EAAE,UAAuB;QAAvE,YACI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAE5B;QADG,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;;IACjC,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAXD,CAA6B,uBAAU,GAWtC;AAXY,0BAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Construto } from
|
|
2
|
-
import { InterpretadorInterface } from
|
|
3
|
-
import { Declaracao } from
|
|
1
|
+
import { Construto } from '../construtos';
|
|
2
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
3
|
+
import { Declaracao } from './declaracao';
|
|
4
4
|
export declare class Expressao extends Declaracao {
|
|
5
5
|
expressao: Construto;
|
|
6
6
|
constructor(expressao: Construto);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expressao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/expressao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"expressao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/expressao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;IAA+B,6BAAU;IAGrC,mBAAY,SAAoB;QAAhC,YACI,kBAAM,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,SAEhD;QADG,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC/B,CAAC;IAED,2BAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IACL,gBAAC;AAAD,CAAC,AAXD,CAA+B,uBAAU,GAWxC;AAXY,8BAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fazer.js","sourceRoot":"","sources":["../../../fontes/declaracoes/fazer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"fazer.js","sourceRoot":"","sources":["../../../fontes/declaracoes/fazer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0C;AAE1C;IAA2B,yBAAU;IAIjC,eACI,WAAmB,EACnB,KAAa,EACb,YAAiB,EACjB,gBAAqB;QAJzB,YAMI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAG5B;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;;IAC7C,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAlBD,CAA2B,uBAAU,GAkBpC;AAlBY,sBAAK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface, SimboloInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { InterpretadorInterface, SimboloInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Funcao extends Declaracao {
|
|
4
4
|
simbolo: SimboloInterface;
|
|
5
5
|
funcao: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/funcao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/funcao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA4B,0BAAU;IAIlC,gBAAY,OAAyB,EAAE,MAAW;QAAlD,YACI,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,SAGpD;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAbD,CAA4B,uBAAU,GAarC;AAbY,wBAAM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Literal } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { Literal } from '../construtos';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Importar extends Declaracao {
|
|
4
4
|
caminho: Literal;
|
|
5
5
|
simboloFechamento: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/importar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"importar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/importar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA8B,4BAAU;IAIpC,kBAAY,OAAgB,EAAE,iBAAsB;QAApD,YACI,kBAAM,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,SAG5C;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;;IAC/C,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,uBAAU,GAavC;AAbY,4BAAQ"}
|
|
@@ -24,6 +24,7 @@ __exportStar(require("./expressao"), exports);
|
|
|
24
24
|
__exportStar(require("./fazer"), exports);
|
|
25
25
|
__exportStar(require("./funcao"), exports);
|
|
26
26
|
__exportStar(require("./importar"), exports);
|
|
27
|
+
__exportStar(require("./leia"), exports);
|
|
27
28
|
__exportStar(require("./para"), exports);
|
|
28
29
|
__exportStar(require("./sustar"), exports);
|
|
29
30
|
__exportStar(require("./retorna"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../fontes/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,2CAAyB;AACzB,4CAA0B;AAC1B,uCAAqB;AACrB,+CAA6B;AAC7B,0CAAwB;AACxB,wCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../fontes/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,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,uCAAqB;AACrB,+CAA6B;AAC7B,0CAAwB;AACxB,wCAAsB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Construto } from '../construtos';
|
|
2
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
3
|
+
import { Declaracao } from './declaracao';
|
|
4
|
+
/**
|
|
5
|
+
* Declaração que pede a leitura de uma informação da entrada
|
|
6
|
+
* configurada no início da aplicação.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Leia extends Declaracao {
|
|
9
|
+
argumentos: Construto[];
|
|
10
|
+
constructor(linha: number, hashArquivo: number, argumentos: Construto[]);
|
|
11
|
+
aceitar(visitante: InterpretadorInterface): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.Leia = void 0;
|
|
19
|
+
var declaracao_1 = require("./declaracao");
|
|
20
|
+
/**
|
|
21
|
+
* Declaração que pede a leitura de uma informação da entrada
|
|
22
|
+
* configurada no início da aplicação.
|
|
23
|
+
*/
|
|
24
|
+
var Leia = /** @class */ (function (_super) {
|
|
25
|
+
__extends(Leia, _super);
|
|
26
|
+
function Leia(linha, hashArquivo, argumentos) {
|
|
27
|
+
var _this = _super.call(this, linha, hashArquivo) || this;
|
|
28
|
+
_this.argumentos = argumentos;
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
Leia.prototype.aceitar = function (visitante) {
|
|
32
|
+
return visitante.visitarExpressaoLeia(this);
|
|
33
|
+
};
|
|
34
|
+
return Leia;
|
|
35
|
+
}(declaracao_1.Declaracao));
|
|
36
|
+
exports.Leia = Leia;
|
|
37
|
+
//# sourceMappingURL=leia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leia.js","sourceRoot":"","sources":["../../../fontes/declaracoes/leia.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;;;GAGG;AACH;IAA0B,wBAAU;IAGhC,cAAY,KAAa,EAAE,WAAmB,EAAE,UAAuB;QAAvE,YACI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAE5B;QADG,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;;IACjC,CAAC;IAED,sBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,WAAC;AAAD,CAAC,AAXD,CAA0B,uBAAU,GAWnC;AAXY,oBAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"para.js","sourceRoot":"","sources":["../../../fontes/declaracoes/para.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"para.js","sourceRoot":"","sources":["../../../fontes/declaracoes/para.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0C;AAE1C;IAA0B,wBAAU;IAMhC,cACI,WAAmB,EACnB,KAAa,EACb,aAAkB,EAClB,QAAa,EACb,WAAgB,EAChB,KAAU;QANd,YAQI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAK5B;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,SAAc;QAClB,OAAO,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,WAAC;AAAD,CAAC,AAxBD,CAA0B,uBAAU,GAwBnC;AAxBY,oBAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface, SimboloInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { InterpretadorInterface, SimboloInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Retorna extends Declaracao {
|
|
4
4
|
simboloChave: SimboloInterface;
|
|
5
5
|
valor: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retorna.js","sourceRoot":"","sources":["../../../fontes/declaracoes/retorna.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"retorna.js","sourceRoot":"","sources":["../../../fontes/declaracoes/retorna.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA6B,2BAAU;IAInC,iBAAY,YAA8B,EAAE,KAAU;QAAtD,YACI,kBAAM,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAG9D;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,cAAC;AAAD,CAAC,AAbD,CAA6B,uBAAU,GAatC;AAbY,0BAAO"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Se extends Declaracao {
|
|
4
4
|
condicao: any;
|
|
5
5
|
caminhoEntao: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"se.js","sourceRoot":"","sources":["../../../fontes/declaracoes/se.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"se.js","sourceRoot":"","sources":["../../../fontes/declaracoes/se.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAAwB,sBAAU;IAM9B,YACI,QAAa,EACb,YAAiB,EACjB,eAAoB,EACpB,YAAiB;QAJrB,YAMI,kBAAM,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,SAK9C;QAJG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;;IACrC,CAAC;IAED,oBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IACL,SAAC;AAAD,CAAC,AAtBD,CAAwB,uBAAU,GAsBjC;AAtBY,gBAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface, SimboloInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { InterpretadorInterface, SimboloInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Sustar extends Declaracao {
|
|
4
4
|
constructor(simbolo: SimboloInterface);
|
|
5
5
|
aceitar(visitante: InterpretadorInterface): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sustar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/sustar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"sustar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/sustar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA4B,0BAAU;IAClC,gBAAY,OAAyB;eACjC,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;IACrD,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AARD,CAA4B,uBAAU,GAQrC;AARY,wBAAM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InterpretadorInterface } from
|
|
2
|
-
import { Declaracao } from
|
|
1
|
+
import { InterpretadorInterface } from '../interfaces';
|
|
2
|
+
import { Declaracao } from './declaracao';
|
|
3
3
|
export declare class Tente extends Declaracao {
|
|
4
4
|
caminhoTente: any;
|
|
5
5
|
caminhoPegue: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tente.js","sourceRoot":"","sources":["../../../fontes/declaracoes/tente.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"tente.js","sourceRoot":"","sources":["../../../fontes/declaracoes/tente.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA2B,yBAAU;IAMjC,eACI,WAAmB,EACnB,KAAa,EACb,YAAiB,EACjB,YAAiB,EACjB,YAAiB,EACjB,iBAAsB;QAN1B,YAQI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAK5B;QAJG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;;IAC/C,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAxBD,CAA2B,uBAAU,GAwBpC;AAxBY,sBAAK"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Construto } from '../construtos';
|
|
2
|
+
import { InterpretadorInterface, SimboloInterface } from '../interfaces';
|
|
3
|
+
import { Declaracao } from './declaracao';
|
|
3
4
|
export declare class Var extends Declaracao {
|
|
4
5
|
simbolo: SimboloInterface;
|
|
5
|
-
inicializador:
|
|
6
|
-
constructor(simbolo: SimboloInterface, inicializador:
|
|
6
|
+
inicializador: Construto;
|
|
7
|
+
constructor(simbolo: SimboloInterface, inicializador: Construto);
|
|
7
8
|
aceitar(visitante: InterpretadorInterface): any;
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"var.js","sourceRoot":"","sources":["../../../fontes/declaracoes/var.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"var.js","sourceRoot":"","sources":["../../../fontes/declaracoes/var.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;IAAyB,uBAAU;IAI/B,aAAY,OAAyB,EAAE,aAAwB;QAA/D,YACI,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,SAGpD;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;;IACvC,CAAC;IAED,qBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACL,UAAC;AAAD,CAAC,AAbD,CAAyB,uBAAU,GAalC;AAbY,kBAAG"}
|