A Smalltalk interpreter for JavaScript/TypeScript. A quick example:
i := 0.
[i lessOrEqual:5] whileTrue:[
Transcript show:i.
i := i plus:1.
].
100% interoperable with JS:
(JS get:"console") log:"Hello JavaScript!".
new STLoader().runSTCode('Transcript show:"Hello Smalltalk!"');
- TypeScript 2.8.1 (development)
- ES5 (target)
- Node.js (only used to open files)
npm install -g typescript
npm install
tsc
(Optionally enable the -w flag to automatically compile changes.)
The JS sources will appear in the build folder
npm run main -- path/to/your/smalltalk/app.st
npm run test