Have ideas to improve npm?Join in the discussion! »

wort

0.1.8 • Public • Published

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;

Install

npm i wort

DownloadsWeekly Downloads

1

Version

0.1.8

License

MIT

Last publish

Collaborators

  • avatar