Remove debug output
This commit is contained in:
parent
35ec9e97ca
commit
cbb17072b5
1
lexer.go
1
lexer.go
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)...)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user