Skip to content

NewtonScript/prota

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prota

An implementation of NewtonScript

I wrote this in 1997. It got to this point before I got distracted by other things. :) I originally called it "Proto" and got about halfway through changing it to "Prota".

It implements

  • The basic NewtonScript object model
  • A NewtonScript interpreter
  • A package stream reader (no writer)
  • A printer

It does not implement

  • A NewtonScript compiler (I used NTK to compile the initial objects and the interpreter test programs, which is why you'll see NTK files here.)
  • An object store
  • A UI system
  • Any other Newton technology :)

There is no object store.

I used the Boehm conservative garbage collection library for memory management rather than the error-prone RefVar system used for precise GC in the Newton OS. There might be a nicer way to do this in C++ now, but I haven't written any serious C++ in this century. :)

This was last compiled in MS Visual C++ in 1997, so there's no working build on any modern computer. In fact, Macs were still on PowerPC when this was last compiled, so the Boehm code certainly needs an update before it will work.

BTW, this is pretty close to what the original NewtonScript source code looks like. My style didn't change much in six years.

About

An implementation of NewtonScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 59.5%
  • HTML 15.8%
  • Shell 8.6%
  • C++ 8.6%
  • Makefile 5.8%
  • JavaScript 0.7%
  • Other 1.0%