amuletml / amulet

An ML-like functional programming language
https://amulet.works/
BSD 3-Clause "New" or "Revised" License
328 stars 16 forks source link

Add a basic watch mode for compilation #214

Closed SquidDev closed 5 years ago

SquidDev commented 5 years ago

One may now run amc compile test.ml --watch -o out.lua, and it will recompile whenever test.ml, or any of its dependencies change. File watchers on dependencies are automatically registered/unregistered.

Note, there's currently a few places where there is room for improvement: