I'm happy to give Wombat-related talks in Australia. I did give one last year at the Melbourne FP meetup: https://www.meetup.com/en-AU/Melbourne-Functional-User-Group-MFUG/events/zhtdllywkbjb/. An attendee was disappointed that there was no code to play with. That inspired me to write the current compiler which now correctly runs some programs, such as factorial:
%/include wombat.wh
`fact = { case $:Nat of [
{ $ = 0; 1}
{ $ = `n; n*fact(n-1) } # n-1 fails if n==0
]
};
print (fact 4)
And it can even run simple programs backwards, though not factorial. Check it out from github: https://github.com/rks987/marsupial. (cd src; python3 compiler.py test.w)
No comments:
Post a Comment