From 6b27930ef9c3eaede8d0c283ffa8376c40145f80 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 25 Nov 2022 21:29:55 -0600 Subject: ¡Otra vez hay renderizador de AST! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compilador/parse/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilador/parse/base.py') diff --git a/compilador/parse/base.py b/compilador/parse/base.py index 9ee673b..bf9277d 100644 --- a/compilador/parse/base.py +++ b/compilador/parse/base.py @@ -61,10 +61,10 @@ class BaseParser: def unlex(self): self.iterador.back() - def synassert(self, cond: bool, msg: str) -> (Error | NoReturn): + def synassert(self, cond: bool, msg: str, numlinea: int) -> (Error | NoReturn): '''Returns a syntax error if cond is false and void otherwise. ''' if not cond: - return Error(msg = msg) + return Error(msg = msg, numlinea = numlinea) -- cgit v1.2.3