git-svn-id: svn://kolibrios.org@4943 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
eAndrew
2014-05-26 19:12:59 +00:00
parent f1cfa188c5
commit ec7c51e8e4
2 changed files with 428 additions and 116 deletions

View File

@@ -46,6 +46,8 @@
je .end
cmp [ebx], byte ")"
je .brk_end
cmp [ebx], byte "|"
je .abs_end
inc [exp_pos]
cmp [ebx], byte "+"
jne .not_add
@@ -69,6 +71,13 @@
set_err 3
@@:
dec [exp_lvl]
jmp .end
.abs_end:
cmp [abs_lvl], 0
jne @f
set_err 5
@@:
dec [abs_lvl]
.end:
ret
.unexp_char:
@@ -180,6 +189,24 @@
.brk_ok:
inc [exp_pos]
jmp .end
@@:
cmp [ebx], byte "|"
jne @f
inc [abs_lvl]
stdcall parse_lvl0
test_err
mov ebx, exp
add ebx, [exp_pos]
cmp [ebx], byte "|"
je .abs_ok
set_err 5
.abs_ok:
inc [exp_pos]
cmp eax, 0
jge .end
not eax
inc eax
jmp .end
@@:
cmp [ebx], byte "+"
jne @f