[NTLK] [ANN] Walter Smith releases a 1997 NewtonScript implementation

Matej Horvat matej.horvat at guest.arnes.si
Sun Nov 19 12:35:00 EST 2017


Amazing!

I got it to compile with Visual C++ 2008 with a few modifications.

In its current state, the test program ("test.cpp") reads the NSOF stream  
"play.stm", which contains a compiled version of the code in  
"exceptions.ns.txt", prints it, and executes it:

{class: #32, instructions: <instructions 9 bytes>, literals: [literals:  
{class:
#32, instructions: <instructions 24 bytes>, literals: [literals: evt.ex,  
Throw,
"e*v*t*.*e*x**", Print], argFrame: nil, numargs: 0, DebuggerInfo: nil},  
{class:
#32, instructions: <instructions 94 bytes>, literals: [literals: evt.ex,  
evt.ex.
bozo, evt.ex.fr, Throw, "e*v*t*.*e*x* *m*i*d*d*l*e**", Print,  
CurrentException,
"e*v*t*.*e*x* *i*n*n*e*r**", "e*v*t*.*e*x* *o*u*t*e*r**"], argFrame: nil,  
numarg
s: 0, DebuggerInfo: nil}, [2: nil, f1, f2], f2], argFrame: nil, numargs:  
65536,
DebuggerInfo: [dbg1: 0, tests]}
"e*v*t*.*e*x**"
nil

What's next? ;)



More information about the NewtonTalk mailing list