@designliquido/birl
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -131,3 +131,3 @@ "use strict"; | ||
} | ||
this.erro(igual, 'Tarefa de atribuição inválida'); | ||
this.erros.push(this.erro(igual, 'Tarefa de atribuição inválida')); | ||
} | ||
@@ -158,3 +158,3 @@ return expressao; | ||
declaracaoPara() { | ||
const primeiroSimbolo = this.consumir(lexico_regular_1.default.MAIS, 'Esperado expressão `MAIS` para iniciar o bloco `PARA`.'); | ||
this.consumir(lexico_regular_1.default.MAIS, 'Esperado expressão `MAIS` para iniciar o bloco `PARA`.'); | ||
this.consumir(lexico_regular_1.default.QUERO, 'Esperado expressão `QUERO` após `MAIS` para iniciar o bloco `PARA`.'); | ||
@@ -259,11 +259,9 @@ this.consumir(lexico_regular_1.default.MAIS, 'Esperado expressão `MAIS` após `QUERO` para iniciar o bloco `PARA`.'); | ||
} | ||
else if (this.verificarTipoSimboloAtual(lexico_regular_1.default.MONSTRINHO)) { | ||
if (this.verificarTipoSimboloAtual(lexico_regular_1.default.MONSTRINHO)) { | ||
return this.consumir(lexico_regular_1.default.MONSTRINHO, ''); | ||
} | ||
else if (this.verificarTipoSimboloAtual(lexico_regular_1.default.MONSTRAO)) { | ||
if (this.verificarTipoSimboloAtual(lexico_regular_1.default.MONSTRAO)) { | ||
return this.consumir(lexico_regular_1.default.MONSTRAO, ''); | ||
} | ||
else { | ||
throw new Error('Simbolo referente a inteiro não especificado.'); | ||
} | ||
this.erros.push(this.erro(this.simbolos[this.atual], 'Simbolo referente a inteiro não especificado.')); | ||
} | ||
@@ -447,3 +445,3 @@ declaracaoInteiros() { | ||
declaracaoSe() { | ||
const { condicaoSe, simboloSe } = this.consomeSe(); | ||
const { condicaoSe } = this.consomeSe(); | ||
const caminhoEntão = this.resolveCaminhoSe(); | ||
@@ -450,0 +448,0 @@ const caminhoSeSenao = []; |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,0 +37,0 @@ exports.InterpretadorBirlComDepuracao = void 0; |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -27,0 +37,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
{ | ||
"name": "@designliquido/birl", | ||
"description": "Dialeto de BIRL baseado em Delégua e TypeScript", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"license": "MIT", | ||
@@ -27,17 +27,17 @@ "bugs": { | ||
"devDependencies": { | ||
"@types/estree": "^1.0.5", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.11.17", | ||
"@types/estree": "^1.0.6", | ||
"@types/jest": "^29.5.14", | ||
"@types/node": "^22.10.1", | ||
"copyfiles": "^2.4.1", | ||
"jest": "^29.7.0", | ||
"rimraf": "^6.0.0", | ||
"ts-jest": "^29.1.2", | ||
"rimraf": "^6.0.1", | ||
"ts-jest": "^29.2.5", | ||
"ts-node": "^10.9.2", | ||
"typedoc": "^0.26.11", | ||
"typescript": "^5.3.3" | ||
"typedoc": "^0.27.1", | ||
"typescript": "^5.7.2" | ||
}, | ||
"dependencies": { | ||
"@designliquido/delegua": "^0.37.0", | ||
"@designliquido/delegua": "^0.37.2", | ||
"lodash": "^4.17.21" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
221895
2745