Skip to content

robertkleffner/wort-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wort

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

Build Status

Installation

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

npm install wort

Basic Usage

Wort transpiles .wort files to NodeJS modules.

wort hodor.wort

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

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.

Examples

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;

About

A concatenative programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published