Skip to content
vic

robertkleffner/wort-old

A concatenative programming language

robertkleffner/wort-old.json
{
"createdAt": "2014-07-17T22:48:52Z",
"defaultBranch": "master",
"description": "A concatenative programming language",
"fullName": "robertkleffner/wort-old",
"homepage": null,
"language": "JavaScript",
"name": "wort-old",
"pushedAt": "2014-10-09T06:16:01Z",
"stargazersCount": 4,
"topics": [],
"updatedAt": "2019-12-17T17:48:12Z",
"url": "https://github.com/robertkleffner/wort-old"
}

A very simple concatenative programming language which compiles down to JavaScript.

Build Status

You must have NodeJS and NPM to run the wort compiler.

Terminal window
npm install wort

Wort transpiles .wort files to NodeJS modules.

Terminal window
wort hodor.wort

The transpiled file will be named hodor.wort.js. You can run this file by typing:

Terminal window
node hodor.wort.js

If you want your wort programs or modules to run in the browser, you can probably use the browserify tool on the output.

A variation on the typical Hello, World! program.

# print a message to std out
main: "Hodor!" printz ;

Sum a list of numbers using fold, a built in function.

# sum a list of numbers (prints 15)
main: [1 2 3 4 5] 0 [+] fold;