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)
|
subExp = Psr(subExpAux)
|
||||||
|
|
||||||
function longExpAux(input)
|
function longExpAux(input)
|
||||||
rawFunc = seq([typ("if"), subExp,
|
rawFunc = seq([typ("if"), exp,
|
||||||
typ("then"), subExp,
|
typ("then"), body,
|
||||||
typ("else"), subExp])
|
typ("else"), body])
|
||||||
rawRes = rawFunc.fun(input)
|
rawRes = rawFunc.fun(input)
|
||||||
if rawRes != nothing
|
if rawRes != nothing
|
||||||
cond = rawRes.matched[2]
|
cond = rawRes.matched[2]
|
||||||
|
|
Loading…
Reference in a new issue