fix parser
This commit is contained in:
parent
1d851522ba
commit
0ff09027a2
1 changed files with 3 additions and 3 deletions
|
@ -470,9 +470,9 @@ end
|
|||
subExp = Psr(subExpAux)
|
||||
|
||||
function longExpAux(input)
|
||||
rawFunc = seq([typ("if"), subExp,
|
||||
typ("then"), subExp,
|
||||
typ("else"), subExp])
|
||||
rawFunc = seq([typ("if"), exp,
|
||||
typ("then"), body,
|
||||
typ("else"), body])
|
||||
rawRes = rawFunc.fun(input)
|
||||
if rawRes != nothing
|
||||
cond = rawRes.matched[2]
|
||||
|
|
Loading…
Reference in a new issue