finally add real logical operators
This commit is contained in:
@@ -27,7 +27,7 @@ func main[] : i64
|
||||
if !memory[p]
|
||||
i = i + 1
|
||||
let opened = 0
|
||||
while i < src_len & !(src[i] == ']' & !opened)
|
||||
while i < src_len && !(src[i] == ']' && !opened)
|
||||
if src[i] == '['
|
||||
opened = opened + 1
|
||||
else if src[i] == ']'
|
||||
@@ -37,7 +37,7 @@ func main[] : i64
|
||||
if memory[p]
|
||||
i = i - 1
|
||||
let closed = 0
|
||||
while i >= 0 & !(src[i] == '[' & !closed)
|
||||
while i >= 0 && !(src[i] == '[' && !closed)
|
||||
if src[i] == ']'
|
||||
closed = closed + 1
|
||||
else if src[i] == '['
|
||||
|
||||
Reference in New Issue
Block a user