@designliquido/delegua 0.1.0 → 0.1.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/delegua +2 -2
- package/bin/delegua.cmd +1 -1
- package/bin/package.json +51 -0
- package/index.js +27 -0
- package/index.js.map +1 -0
- package/package.json +2 -2
- package/src/ambiente.js +49 -0
- package/src/ambiente.js.map +1 -0
- package/src/avaliador-sintatico/dialetos/egua-classico.js +635 -0
- package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -0
- package/src/avaliador-sintatico/dialetos/index.js +14 -0
- package/src/avaliador-sintatico/dialetos/index.js.map +1 -0
- package/src/avaliador-sintatico/index.js +635 -0
- package/src/avaliador-sintatico/index.js.map +1 -0
- package/src/avaliador-sintatico/parser-error.js +27 -0
- package/src/avaliador-sintatico/parser-error.js.map +1 -0
- package/src/bibliotecas/bibliotecaGlobal.js +97 -0
- package/src/bibliotecas/bibliotecaGlobal.js.map +1 -0
- package/src/bibliotecas/importarBiblioteca.js +32 -0
- package/src/bibliotecas/importarBiblioteca.js.map +1 -0
- package/src/construtos/assign-subscript.js +35 -0
- package/src/construtos/assign-subscript.js.map +1 -0
- package/src/construtos/atribuir.js +34 -0
- package/src/construtos/atribuir.js.map +1 -0
- package/src/construtos/binario.js +35 -0
- package/src/construtos/binario.js.map +1 -0
- package/src/construtos/call.js +35 -0
- package/src/construtos/call.js.map +1 -0
- package/src/construtos/conjunto.js +35 -0
- package/src/construtos/conjunto.js.map +1 -0
- package/src/construtos/dicionario.js +34 -0
- package/src/construtos/dicionario.js.map +1 -0
- package/src/construtos/expr.js +11 -0
- package/src/construtos/expr.js.map +1 -0
- package/src/construtos/funcao.js +34 -0
- package/src/construtos/funcao.js.map +1 -0
- package/src/construtos/get.js +34 -0
- package/src/construtos/get.js.map +1 -0
- package/src/construtos/grouping.js +33 -0
- package/src/construtos/grouping.js.map +1 -0
- package/src/construtos/index.js +31 -0
- package/src/construtos/index.js.map +1 -0
- package/src/construtos/isto.js +33 -0
- package/src/construtos/isto.js.map +1 -0
- package/src/construtos/literal.js +33 -0
- package/src/construtos/literal.js.map +1 -0
- package/src/construtos/logical.js +35 -0
- package/src/construtos/logical.js.map +1 -0
- package/src/construtos/subscript.js +35 -0
- package/src/construtos/subscript.js.map +1 -0
- package/src/construtos/super.js +34 -0
- package/src/construtos/super.js.map +1 -0
- package/src/construtos/unario.js +34 -0
- package/src/construtos/unario.js.map +1 -0
- package/src/construtos/variavel.js +33 -0
- package/src/construtos/variavel.js.map +1 -0
- package/src/construtos/vetor.js +33 -0
- package/src/construtos/vetor.js.map +1 -0
- package/src/declaracoes/index.js +249 -0
- package/src/declaracoes/index.js.map +1 -0
- package/src/delegua.js +132 -0
- package/src/delegua.js.map +1 -0
- package/src/estruturas/callable.js +16 -0
- package/src/estruturas/callable.js.map +1 -0
- package/src/estruturas/classe.js +57 -0
- package/src/estruturas/classe.js.map +1 -0
- package/src/estruturas/funcao-padrao.js +38 -0
- package/src/estruturas/funcao-padrao.js.map +1 -0
- package/src/estruturas/funcao.js +81 -0
- package/src/estruturas/funcao.js.map +1 -0
- package/src/estruturas/index.js +19 -0
- package/src/estruturas/index.js.map +1 -0
- package/src/estruturas/instancia.js +28 -0
- package/src/estruturas/instancia.js.map +1 -0
- package/src/estruturas/modulo.js +15 -0
- package/src/estruturas/modulo.js.map +1 -0
- package/src/excecoes/break-exception.js +27 -0
- package/src/excecoes/break-exception.js.map +1 -0
- package/src/excecoes/continue-exception.js +27 -0
- package/src/excecoes/continue-exception.js.map +1 -0
- package/src/excecoes/erro-em-tempo-de-execucao.js +31 -0
- package/src/excecoes/erro-em-tempo-de-execucao.js.map +1 -0
- package/src/excecoes/index.js +17 -0
- package/src/excecoes/index.js.map +1 -0
- package/src/excecoes/return-exception.js +30 -0
- package/src/excecoes/return-exception.js.map +1 -0
- package/src/interfaces/avaliador-sintatico-interface.js +3 -0
- package/src/interfaces/avaliador-sintatico-interface.js.map +1 -0
- package/src/interfaces/index.js +19 -0
- package/src/interfaces/index.js.map +1 -0
- package/src/interfaces/interpretador-interface.js +3 -0
- package/src/interfaces/interpretador-interface.js.map +1 -0
- package/src/interfaces/lexador-interface.js +3 -0
- package/src/interfaces/lexador-interface.js.map +1 -0
- package/src/interfaces/pilha-interface.js +3 -0
- package/src/interfaces/pilha-interface.js.map +1 -0
- package/src/interfaces/resolvedor-interface.js +3 -0
- package/src/interfaces/resolvedor-interface.js.map +1 -0
- package/src/interfaces/simbolo-interface.js +3 -0
- package/src/interfaces/simbolo-interface.js.map +1 -0
- package/src/interpretador/dialetos/egua-classico.js +665 -0
- package/src/interpretador/dialetos/egua-classico.js.map +1 -0
- package/src/interpretador/dialetos/index.js +14 -0
- package/src/interpretador/dialetos/index.js.map +1 -0
- package/src/interpretador/index.js +665 -0
- package/src/interpretador/index.js.map +1 -0
- package/src/lexador/dialetos/egua-classico.js +287 -0
- package/src/lexador/dialetos/egua-classico.js.map +1 -0
- package/src/lexador/dialetos/index.js +14 -0
- package/src/lexador/dialetos/index.js.map +1 -0
- package/src/lexador/index.js +287 -0
- package/src/lexador/index.js.map +1 -0
- package/src/resolvedor/Pilha.js +27 -0
- package/src/resolvedor/Pilha.js.map +1 -0
- package/src/resolvedor/ResolverError.js +29 -0
- package/src/resolvedor/ResolverError.js.map +1 -0
- package/src/resolvedor/{index.ts → dialetos/egua-classico.js} +147 -228
- package/src/resolvedor/dialetos/egua-classico.js.map +1 -0
- package/src/resolvedor/dialetos/index.js +14 -0
- package/src/resolvedor/dialetos/index.js.map +1 -0
- package/src/resolvedor/{dialetos/egua-classico.ts → index.js} +147 -228
- package/src/resolvedor/index.js.map +1 -0
- package/src/{tiposDeSimbolos.ts → tiposDeSimbolos.js} +5 -2
- package/src/tiposDeSimbolos.js.map +1 -0
- package/src/web.js +66 -0
- package/src/web.js.map +1 -0
- package/.github/CONTRIBUTING.md +0 -37
- package/.github/workflows/principal.yml +0 -22
- package/.release-it.json +0 -9
- package/.vscode/launch.json +0 -64
- package/.vscode/settings.json +0 -3
- package/LICENSE +0 -21
- package/README.md +0 -66
- package/babel.config.js +0 -1
- package/index.ts +0 -29
- package/src/ambiente.ts +0 -56
- package/src/avaliador-sintatico/dialetos/egua-classico.ts +0 -983
- package/src/avaliador-sintatico/dialetos/index.ts +0 -1
- package/src/avaliador-sintatico/index.ts +0 -983
- package/src/avaliador-sintatico/parser-error.ts +0 -1
- package/src/bibliotecas/bibliotecaGlobal.ts +0 -171
- package/src/bibliotecas/importarBiblioteca.ts +0 -32
- package/src/construtos/assign-subscript.ts +0 -19
- package/src/construtos/atribuir.ts +0 -17
- package/src/construtos/binario.ts +0 -19
- package/src/construtos/call.ts +0 -19
- package/src/construtos/conjunto.ts +0 -19
- package/src/construtos/dicionario.ts +0 -17
- package/src/construtos/expr.ts +0 -3
- package/src/construtos/funcao.ts +0 -17
- package/src/construtos/get.ts +0 -17
- package/src/construtos/grouping.ts +0 -15
- package/src/construtos/index.ts +0 -18
- package/src/construtos/isto.ts +0 -15
- package/src/construtos/literal.ts +0 -15
- package/src/construtos/logical.ts +0 -19
- package/src/construtos/subscript.ts +0 -19
- package/src/construtos/super.ts +0 -17
- package/src/construtos/unario.ts +0 -17
- package/src/construtos/variavel.ts +0 -15
- package/src/construtos/vetor.ts +0 -15
- package/src/declaracoes/index.ts +0 -243
- package/src/delegua.ts +0 -156
- package/src/estruturas/callable.ts +0 -11
- package/src/estruturas/classe.ts +0 -47
- package/src/estruturas/funcao-padrao.ts +0 -22
- package/src/estruturas/funcao.ts +0 -70
- package/src/estruturas/index.ts +0 -6
- package/src/estruturas/instancia.ts +0 -30
- package/src/estruturas/modulo.ts +0 -11
- package/src/excecoes/break-exception.ts +0 -1
- package/src/excecoes/continue-exception.ts +0 -1
- package/src/excecoes/erro-em-tempo-de-execucao.ts +0 -11
- package/src/excecoes/index.ts +0 -4
- package/src/excecoes/return-exception.ts +0 -10
- package/src/interfaces/avaliador-sintatico-interface.ts +0 -58
- package/src/interfaces/index.ts +0 -6
- package/src/interfaces/interpretador-interface.ts +0 -52
- package/src/interfaces/lexador-interface.ts +0 -24
- package/src/interfaces/pilha-interface.ts +0 -7
- package/src/interfaces/resolvedor-interface.ts +0 -49
- package/src/interfaces/simbolo-interface.ts +0 -6
- package/src/interpretador/dialetos/egua-classico.ts +0 -825
- package/src/interpretador/dialetos/index.ts +0 -1
- package/src/interpretador/index.ts +0 -825
- package/src/lexador/dialetos/egua-classico.ts +0 -333
- package/src/lexador/dialetos/index.ts +0 -1
- package/src/lexador/index.ts +0 -333
- package/src/resolvedor/Pilha.ts +0 -29
- package/src/resolvedor/ResolverError.ts +0 -8
- package/src/resolvedor/dialetos/index.ts +0 -1
- package/src/web.ts +0 -75
- package/testes/testes.egua +0 -630
- package/tsconfig.json +0 -11
package/src/interfaces/index.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export interface InterpretadorInterface {
|
|
2
|
-
Delegua: any;
|
|
3
|
-
diretorioBase: any;
|
|
4
|
-
global: any;
|
|
5
|
-
ambiente: any;
|
|
6
|
-
locais: any;
|
|
7
|
-
|
|
8
|
-
resolver(expr: any, depth: any): void;
|
|
9
|
-
visitLiteralExpr(expr: any): any;
|
|
10
|
-
avaliar(expr: any): any;
|
|
11
|
-
visitGroupingExpr(expr: any): any;
|
|
12
|
-
eVerdadeiro(objeto: any): boolean;
|
|
13
|
-
checkNumberOperand(operador: any, operand: any): void;
|
|
14
|
-
visitUnaryExpr(expr: any): any;
|
|
15
|
-
eIgual(esquerda: any, direita: any): any;
|
|
16
|
-
checkNumberOperands(operador: any, direita: any, esquerda: any): void;
|
|
17
|
-
visitBinaryExpr(expr: any): any;
|
|
18
|
-
visitCallExpr(expr: any): any;
|
|
19
|
-
visitAssignExpr(expr: any): any;
|
|
20
|
-
procurarVariavel(nome: any, expr: any): any;
|
|
21
|
-
visitVariableExpr(expr: any): any;
|
|
22
|
-
visitExpressionStmt(stmt: any): any;
|
|
23
|
-
visitLogicalExpr(expr: any): any;
|
|
24
|
-
visitIfStmt(stmt: any): any;
|
|
25
|
-
visitForStmt(stmt: any): any;
|
|
26
|
-
visitDoStmt(stmt: any): any;
|
|
27
|
-
visitSwitchStmt(stmt: any): any;
|
|
28
|
-
visitTryStmt(stmt: any): any;
|
|
29
|
-
visitWhileStmt(stmt: any): any;
|
|
30
|
-
visitImportStmt(stmt: any): any;
|
|
31
|
-
visitPrintStmt(stmt: any): any;
|
|
32
|
-
executeBlock(declaracoes: any, ambiente: any): void;
|
|
33
|
-
visitBlockStmt(stmt: any): null;
|
|
34
|
-
visitVarStmt(stmt: any): null;
|
|
35
|
-
visitContinueStmt(stmt?: any): void;
|
|
36
|
-
visitBreakStmt(stmt?: any): void;
|
|
37
|
-
visitReturnStmt(stmt: any): void;
|
|
38
|
-
visitFunctionExpr(expr: any): any;
|
|
39
|
-
visitAssignSubscriptExpr(expr: any): void;
|
|
40
|
-
visitSubscriptExpr(expressao: any): any;
|
|
41
|
-
visitSetExpr(expr: any): any;
|
|
42
|
-
visitFunctionStmt(stmt: any): any;
|
|
43
|
-
visitClassStmt(stmt: any): any;
|
|
44
|
-
visitGetExpr(expr: any): any;
|
|
45
|
-
visitThisExpr(expr: any): any;
|
|
46
|
-
visitDictionaryExpr(expr: any): any;
|
|
47
|
-
visitArrayExpr(expr: any): any;
|
|
48
|
-
visitSuperExpr(expr: any): any;
|
|
49
|
-
stringify(objeto: any): any;
|
|
50
|
-
executar(stmt: any, imprimirResultado: boolean): void;
|
|
51
|
-
interpretar(declaracoes: any): void;
|
|
52
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface LexadorInterface {
|
|
2
|
-
Delegua: any;
|
|
3
|
-
codigo: any;
|
|
4
|
-
simbolos: any;
|
|
5
|
-
inicio: any;
|
|
6
|
-
atual: any;
|
|
7
|
-
linha: any;
|
|
8
|
-
|
|
9
|
-
eDigito(caractere: any): boolean;
|
|
10
|
-
eAlfabeto(caractere: any): boolean;
|
|
11
|
-
eAlfabetoOuDigito(caractere: any): boolean;
|
|
12
|
-
eFinalDoCodigo(): boolean;
|
|
13
|
-
avancar(): void;
|
|
14
|
-
adicionarSimbolo(tipo: any, literal: any): void;
|
|
15
|
-
match(esperado: any): boolean;
|
|
16
|
-
peek(): any;
|
|
17
|
-
peekNext(): any;
|
|
18
|
-
voltar(): any;
|
|
19
|
-
analisarTexto(texto: string): void;
|
|
20
|
-
analisarNumero(): void;
|
|
21
|
-
identificarPalavraChave(): void;
|
|
22
|
-
scanToken(): void;
|
|
23
|
-
scan(): any;
|
|
24
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface ResolvedorInterface {
|
|
2
|
-
interpretador: any;
|
|
3
|
-
Delegua: any;
|
|
4
|
-
escopos: any;
|
|
5
|
-
FuncaoAtual: any;
|
|
6
|
-
ClasseAtual: any;
|
|
7
|
-
cicloAtual: any;
|
|
8
|
-
|
|
9
|
-
definir(nome: any): void;
|
|
10
|
-
declarar(nome: any): void;
|
|
11
|
-
inicioDoEscopo(): void;
|
|
12
|
-
finalDoEscopo(): void;
|
|
13
|
-
resolver(declaracoes: any): void;
|
|
14
|
-
resolverLocal(expr: any, nome: any): void;
|
|
15
|
-
visitBlockStmt(stmt: any): any;
|
|
16
|
-
visitVariableExpr(expr: any): any;
|
|
17
|
-
visitVarStmt(stmt: any): any;
|
|
18
|
-
visitAssignExpr(expr: any): any;
|
|
19
|
-
resolverFuncao(funcao: any, funcType: any): void;
|
|
20
|
-
visitFunctionStmt(stmt: any): any;
|
|
21
|
-
visitFunctionExpr(stmt: any): any;
|
|
22
|
-
visitTryStmt(stmt: any): any;
|
|
23
|
-
visitClassStmt(stmt: any): any;
|
|
24
|
-
visitSuperExpr(expr: any): any;
|
|
25
|
-
visitGetExpr(expr: any): any;
|
|
26
|
-
visitExpressionStmt(stmt: any): any;
|
|
27
|
-
visitIfStmt(stmt: any): any;
|
|
28
|
-
visitImportStmt(stmt: any): void;
|
|
29
|
-
visitPrintStmt(stmt: any): void;
|
|
30
|
-
visitReturnStmt(stmt: any): any;
|
|
31
|
-
visitSwitchStmt(stmt: any): void;
|
|
32
|
-
visitWhileStmt(stmt: any): any;
|
|
33
|
-
visitForStmt(stmt: any): any;
|
|
34
|
-
visitDoStmt(stmt: any): any;
|
|
35
|
-
visitBinaryExpr(expr: any): any;
|
|
36
|
-
visitCallExpr(expr: any): any;
|
|
37
|
-
visitGroupingExpr(expr: any): any;
|
|
38
|
-
visitDictionaryExpr(expr: any): any;
|
|
39
|
-
visitArrayExpr(expr: any): any;
|
|
40
|
-
visitSubscriptExpr(expr: any): any;
|
|
41
|
-
visitContinueStmt(stmt?: any): any;
|
|
42
|
-
visitBreakStmt(stmt?: any): any;
|
|
43
|
-
visitAssignsubscriptExpr(expr?: any): any;
|
|
44
|
-
visitLiteralExpr(expr?: any): any;
|
|
45
|
-
visitLogicalExpr(expr?: any): any;
|
|
46
|
-
visitUnaryExpr(expr?: any): any;
|
|
47
|
-
visitSetExpr(expr?: any): any;
|
|
48
|
-
visitThisExpr(expr?: any): any;
|
|
49
|
-
}
|