https://github.com/fwcd/smallballoon
Smalltalk interpreter for JavaScript/TypeScript
https://github.com/fwcd/smallballoon
javascript nodejs smalltalk smalltalk-interpreter typescript
Last synced: 9 months ago
JSON representation
Smalltalk interpreter for JavaScript/TypeScript
- Host: GitHub
- URL: https://github.com/fwcd/smallballoon
- Owner: fwcd
- License: mit
- Created: 2018-04-15T17:45:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-27T11:35:42.000Z (almost 8 years ago)
- Last Synced: 2024-12-07T08:46:00.093Z (over 1 year ago)
- Topics: javascript, nodejs, smalltalk, smalltalk-interpreter, typescript
- Language: TypeScript
- Homepage:
- Size: 156 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SmallBalloon
A Smalltalk interpreter for JavaScript/TypeScript. A quick example:
```smalltalk
i := 0.
[i lessOrEqual:5] whileTrue:[
Transcript show:i.
i := i plus:1.
].
```
100% interoperable with JS:
```smalltalk
(JS get:"console") log:"Hello JavaScript!".
```
```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`