robertkleffner/wort-old
A concatenative programming language
{ "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.
Installation
Section titled “Installation”You must have NodeJS and NPM to run the wort compiler.
npm install wortBasic Usage
Section titled “Basic Usage”Wort transpiles .wort files to NodeJS modules.
wort hodor.wortThe transpiled file will be named hodor.wort.js. You can run this file by typing:
node hodor.wort.jsIf you want your wort programs or modules to run in the browser, you can probably use the browserify tool on the output.
Examples
Section titled “Examples”A variation on the typical Hello, World! program.
# print a message to std outmain: "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;