uhmanoa-transpiler-project / shaka-scheme

The official repository for the UH Manoa Transpiler Project's Scheme interpreter, Shaka Scheme.
32 stars 24 forks source link

Fixed nested_comment and parse_datum #46

Closed btwooton closed 6 years ago

btwooton commented 6 years ago

Hi all. The issue with the recursive lambda declarations for parse_datum and nested_comment has been resolved. The solution was surprisingly simple: just declare a nested lambda called recurse and have it refer to a lambda that has a [&] capture list. The internals of the outer lambda are simply nested inside of this inner lambda, and then we simply return the call to recurse(in) to the top level. All unit-Tests compile and pass with this fix.