Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatador codigo potigol #660

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ export class AvaliadorSintaticoPotigol extends AvaliadorSintaticoBase {

tiposPotigolParaDelegua = {
Caractere: 'texto',
Inteiro: 'numero',
Logico: 'lógico',
Inteiro: 'inteiro',
Logico: 'logico',
Lógico: 'lógico',
Real: 'numero',
Real: 'real',
Aristidescosta marked this conversation as resolved.
Show resolved Hide resolved
Texto: 'texto',
undefined: undefined,
};
Expand Down Expand Up @@ -169,8 +169,7 @@ export class AvaliadorSintaticoPotigol extends AvaliadorSintaticoBase {
this.simbolos[this.atual],
'Esperado tipo válido após dois-pontos como retorno de função.'
);

tipoRetorno = this.simbolos[this.atual - 1];
tipoRetorno = this.simbolos[this.atual];
leonelsanchesdasilva marked this conversation as resolved.
Show resolved Hide resolved
}

// Se houver símbolo de igual, seja após fechamento de parênteses,
Expand Down Expand Up @@ -984,10 +983,10 @@ export class AvaliadorSintaticoPotigol extends AvaliadorSintaticoBase {
simboloTipo.linha,
propriedades.map(
(p) =>
({
abrangencia: 'padrao',
nome: p.nome,
} as ParametroInterface)
({
abrangencia: 'padrao',
nome: p.nome,
} as ParametroInterface)
),
instrucoesConstrutor
);
Expand Down
Loading
Loading