Closed at15 closed 7 years ago
From #6 , we got trouble when parsing lambda-calculus when function body is a function application
(lambda x. x) (lambda x. x x);
currently we have
term: ID # Var | 'lambda' ID '.' term # Abs | term term # App | '(' term ')' # Brackets ;
the function body is x x, but we didn't parse it correctly
x x
after change the order of application and abstraction, we got the correct result
term: ID # Var | term term # App | 'lambda' ID '.' term # Abs | '(' term ')' # Brackets ;
From #6 , we got trouble when parsing lambda-calculus when function body is a function application
currently we have
the function body is
x x
, but we didn't parse it correctly