mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix brainfuck.ar takes ages to parse
This commit is contained in:
@@ -66,6 +66,9 @@ func parseOperations(code UNPARSEcode, index int, codelines []UNPARSEcode) (oper
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for k := 0; k < len(split)-1; k++ {
|
for k := 0; k < len(split)-1; k++ {
|
||||||
|
if (len(strings.TrimSpace(split[k])) == 0 || len(strings.TrimSpace(split[k+1])) == 0) && operations[i][j] != "-" {
|
||||||
|
break
|
||||||
|
}
|
||||||
val1, worked, err, step1 := translateVal(UNPARSEcode{
|
val1, worked, err, step1 := translateVal(UNPARSEcode{
|
||||||
code: strings.Join(split[:k+1], operations[i][j]),
|
code: strings.Join(split[:k+1], operations[i][j]),
|
||||||
realcode: code.realcode,
|
realcode: code.realcode,
|
||||||
|
|||||||
Reference in New Issue
Block a user