Skip to content

Smalltalk interpreter for JavaScript/TypeScript

License

Notifications You must be signed in to change notification settings

fwcd/smallballoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmallBalloon

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!"');

Dependencies

  • TypeScript 2.8.1 (development)
  • ES5 (target)
  • Node.js (only used to open files)

Setup using npm

npm install -g typescript

npm install

Compile sources

tsc (Optionally enable the -w flag to automatically compile changes.)

The JS sources will appear in the build folder

Run main sources

npm run main -- path/to/your/smalltalk/app.st

Run test sources

npm run test

Releases

No releases published

Packages

No packages published