diff --git a/src/parser.jl b/src/parser.jl index 344c374..8bc2b28 100644 --- a/src/parser.jl +++ b/src/parser.jl @@ -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]