-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/principal' into biblioteca-internet
- Loading branch information
Showing
17 changed files
with
582 additions
and
133 deletions.
There are no files selected for viewing
240 changes: 145 additions & 95 deletions
240
fontes/avaliador-sintatico/avaliador-sintatico-portugol-studio.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './limpa'; | ||
export * from './matriz'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Construto } from "@designliquido/delegua"; | ||
|
||
import { VisitantePortugolStudioInterface } from "../interfaces"; | ||
|
||
export class Limpa implements Construto { | ||
linha: number; | ||
hashArquivo: number; | ||
|
||
constructor(hashArquivo: number, linha: number) { | ||
this.hashArquivo = hashArquivo; | ||
this.linha = linha; | ||
} | ||
|
||
async aceitar(visitante: VisitantePortugolStudioInterface): Promise<any> { | ||
return await visitante.visitarExpressaoLimpa(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { VisitanteComumInterface } from "@designliquido/delegua"; | ||
import { Construto } from "@designliquido/delegua/construtos"; | ||
|
||
import { InterpretadorPortugolStudio } from "../interpretador"; | ||
|
||
export class Matriz implements Construto { | ||
linha: number; | ||
hashArquivo: number; | ||
dimensoes: number[]; | ||
valores: any; | ||
|
||
constructor(hashArquivo: number, linha: number, dimensoes: number[], valores: any) { | ||
this.linha = linha; | ||
this.hashArquivo = hashArquivo; | ||
this.dimensoes = dimensoes; | ||
this.valores = valores; | ||
} | ||
|
||
async aceitar(visitante: VisitanteComumInterface): Promise<any> { | ||
return await (visitante as InterpretadorPortugolStudio).visitarExpressaoMatriz(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './visitante-portugol-studio-interface'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { VisitanteComumInterface } from "@designliquido/delegua"; | ||
|
||
import { Limpa } from "../construtos/limpa"; | ||
|
||
export interface VisitantePortugolStudioInterface extends VisitanteComumInterface { | ||
visitarExpressaoLimpa(expressao: Limpa): void | Promise<any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.