a tiny embeddable scripting language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Robey 881178fd16 1.7.0 5 days ago
docs fill in missing list expr 5 days ago
src oops! the list expressions really need to run inside a new frame 5 days ago
tests oops! the list expressions really need to run inside a new frame 5 days ago
.gitignore import tokenizer from zdani 5 months ago
LICENSE.txt include a readme and license 4 months ago
README.md sigh. switch to using ";" for line endings and "." for messages 3 months ago
package-lock.json 1.7.0 5 days ago
package.json 1.7.0 5 days ago
tsconfig.json add array expressions. 5 months ago

README.md

Teilz

Teilz (pronounced "tails") is a tiny embeddable scripting language, written in typescript, and created primarily to support the zdani text game. It stands for "terrifically easy instruction language for zdani".

Syntax

There are only a few built-in types: Boolean, Number, String, and Array. You may add more using the API.

Code is strongly but implicitly typed. Each expression and statement has a type which is checked at parse time, but you don't usually declare them. For example, the condition of an "if" expression must be Boolean.

Infix expressions are supported with the usual precedence, and are translated into messages (method calls).

Detailed syntax

Constants are true, false for Boolean, any digits for Number, and any string in quotes (like "this") for String.

FIXME

Embedding

FIXME

License

Apache 2 (open-source) license, included in 'LICENSE.txt'.

Credit and blame: Robey Pointer robey@lag.net