I’m trying to parse Lambda Calculus for an implementation I made of it:
In the definition of
expression, if I remove
application, parsing variables and lambdas works fine (cf. tests). But as it is, it gives me the error
RangeError: Maximum call stack size exceeded. I don’t understand why my definition of
application creates an endless loop.