Shen.java
Shen.java copied to clipboard
Fix for recursive functions using "let" keyword
1)Adding a fix to allow functions which are self recursive and which use the "let" keyword to work properly e.g. :
(define funcLetAndRecurse X -> (let Z (- X 1) (if (= Z 1) (* 3 X) (funcLetAndRecurse Z)) ) )
2)Extending smoke tests
3)Adding build script for windows
Thanks Artella,
will have a look at this and try to understand what's actually happening before merging it :-) I'm back in London, will dig into all the Shen.java stuff you've raised at some point.
cheers, Hakan
Från: artella.coding [email protected] Till: hraberg/Shen.java [email protected] Skickat: lördag, 20 juli 2013 23:11 Ämne: [Shen.java] Fix for recursive functions using "let" keyword (#11)
1)Adding a fix to allow functions which are self recursive and which use the "let" keyword to work properly e.g. : (define funcLetAndRecurse X -> (let Z (- X 1) (if (= Z 1) (* 3 X) (funcLetAndRecurse Z)) ) ) 2)Extending smoke tests 3)Adding build script for windows
You can merge this Pull Request by running git pull https://github.com/artella-coding/Shen.java master Or view, comment on, or merge it at: https://github.com/hraberg/Shen.java/pull/11 Commit Summary * Adding fix for case where function is self recursive and uses let keyword * adding build script for windows File Changes * A buildAndRunWindows.bat (23) * M src/shen/Shen.java (13) * M test/shen/SmokeTest.java (60) Patch Links: * https://github.com/hraberg/Shen.java/pull/11.patch * https://github.com/hraberg/Shen.java/pull/11.diff