readme for NUT v1.0
This is a simple version of NUT (without global variables). The
compiler is "nut.exe" which takes standard input as NUT language source
file and produces "a.obj" object file suitable to execute under
"nsim.exe" the simulator.
Example session
c:>nut < quick1.txt
a lot of output appears on the screen. They are the "n-code", the
intermediate language. You can read about it in \doc\n-code.txt. The
compiler will produce "a.obj". Then, run it using "nsim".
c:>nsim < a.obj
(fun.2.2 (do (put.1 (new lit.20
))(call.408 get.1 lit.20 )(call.466 get.1 lit.20
)(call.354 get.1 lit.0
lit.19 )(call.466 get.1 lit.20 )))
20 19 18 17 16 15 14 13 12 11 10
9 8 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14
15 16 17 18 19 20
10
This is the output from a quick-sort program.
Prabhas Chongstitvatana
8 June 2006