From cbb17072b5629c144c16c258936aebc9057e6fdc Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Sun, 24 Mar 2024 20:55:59 +0100 Subject: [PATCH] Remove debug output --- lexer.go | 1 - validator.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/lexer.go b/lexer.go index 0a1e1aa..41e794a 100644 --- a/lexer.go +++ b/lexer.go @@ -228,7 +228,6 @@ func (l *Lexer) nextToken() (*LexToken, error) { if len(token) == 0 { if len(l.Runes) == 0 { - println("E3") return nil, nil } diff --git a/validator.go b/validator.go index fda3962..fae2d72 100644 --- a/validator.go +++ b/validator.go @@ -148,8 +148,6 @@ func (v *Validator) validatePotentiallyVoidExpression(expr *Expression) []error local := getLocal(v.currentBlock, reference.Variable) if local == nil { errors = append(errors, v.createError("Reference to undeclared variable "+reference.Variable, expr.Position)) - //panic("E") - println("ERROR") return errors } @@ -398,7 +396,6 @@ func (v *Validator) validateBlock(block *Block, functionLocals *[]Local) []error for i := range block.Statements { v.currentBlock = block - println("CURRBLOCK") stmt := &block.Statements[i] errors = append(errors, v.validateStatement(stmt, functionLocals)...) }