Remove debug output

This commit is contained in:
MrLetsplay 2024-03-24 20:55:59 +01:00
parent 35ec9e97ca
commit cbb17072b5
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 0 additions and 4 deletions

View File

@ -228,7 +228,6 @@ func (l *Lexer) nextToken() (*LexToken, error) {
if len(token) == 0 { if len(token) == 0 {
if len(l.Runes) == 0 { if len(l.Runes) == 0 {
println("E3")
return nil, nil return nil, nil
} }

View File

@ -148,8 +148,6 @@ func (v *Validator) validatePotentiallyVoidExpression(expr *Expression) []error
local := getLocal(v.currentBlock, reference.Variable) local := getLocal(v.currentBlock, reference.Variable)
if local == nil { if local == nil {
errors = append(errors, v.createError("Reference to undeclared variable "+reference.Variable, expr.Position)) errors = append(errors, v.createError("Reference to undeclared variable "+reference.Variable, expr.Position))
//panic("E")
println("ERROR")
return errors return errors
} }
@ -398,7 +396,6 @@ func (v *Validator) validateBlock(block *Block, functionLocals *[]Local) []error
for i := range block.Statements { for i := range block.Statements {
v.currentBlock = block v.currentBlock = block
println("CURRBLOCK")
stmt := &block.Statements[i] stmt := &block.Statements[i]
errors = append(errors, v.validateStatement(stmt, functionLocals)...) errors = append(errors, v.validateStatement(stmt, functionLocals)...)
} }