add class function and remove debug prints

This commit is contained in:
2023-03-28 16:33:02 +01:00
parent efd43ad72d
commit 6e54dce252
4 changed files with 29 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"fmt"
"strings"
)
@@ -31,7 +30,6 @@ func parseTryCatch(code UNPARSEcode, index int, codelines []UNPARSEcode) (TryCat
totalIndex += i
catchtrimmed := strings.TrimSpace(codelines[index+totalIndex].code)
if !catchCompiled.MatchString(catchtrimmed) {
fmt.Println(catchtrimmed)
return TryCatch{}, false, ArErr{"Syntax Error", "invalid syntax", code.line, code.path, code.realcode, true}, i
}
catchtrimmed = catchtrimmed[6:]