majjoha / sloth

A lazy, functional programming language.
https://github.com/majjoha/sloth
GNU General Public License v3.0
2 stars 0 forks source link

Implementing mark 5 features in G-machine #6

Open engesgaard opened 8 years ago

engesgaard commented 8 years ago

The features described for the mark 5 G-machine in "Implementing Functional Languages: a tutorial" needs to be implemented. This means implementing an E compilation scheme which exploits the knowledge that a particular expression will be needed in WHNF to optimize the compiled bytecode.

As an aside, we also need to implement logical AND and OR.