1.0.1 • Published 9 years ago

darmok-lang v1.0.1

Weekly downloads
9
License
-
Repository
github
Last release
9 years ago

#darmok

Tamarian programming language

##Explanation

The Tamarians (or Children of Tama) are an alien race that was featured in the 102nd episode of Star Trek: The Next Generation. They communicate exclusively through metaphor based on their own culture's lore and history, leading past Starfleet crews and the Enterprise (initially at least) to find their language completely incomprehensible.

Being a technologically advanced, post-warp culture, it stands to reason that the Tamarians would incorporate this same type of metaphorical communication into their programming languages.

##Installation

npm install darmok-lang

##Usage

Usage: darmok <infile.darmok> [<outfile.c>]

##Spec

Darmok converts directly into C. Whole lines must be in either Darmok or C. Mixing will cause problems. Darmok lines do not need a semicolon at the end. C lines do (where applicable).

(Note: %s indicates the text that follows the Darmok instruction)

Darmok instructionC equivalentNotes
Temba, his arms wide#include <%s.h>
Temba, at rest#include "%s.h"
Sokath, his eyes uncovered#define %s
Darmok on the oceanint main(%s) {
Darmok and Jalad at Tanagrareturn %s;
Darmok and Jalad on the ocean}Main close bracket
Kira at Bashiprintf(%s);
The river Termarc in winter}Generic close bracket
Uzani, his army with fists openif (%s) {
Uzani, his army with fists closed} else {
Mirab, with sails unfurledfor (%s) {
Kiteo, his eyes closedwhile (%s) {
Chenza at courtswitch (%s) {
the court of silence}Switch close bracket
Shakacase %s:
Zindadefault:
when the walls fellbreak

##Example

Darmok:

Temba, his arms wide stdio

Darmok on the ocean
    Kira at Bashi "Hello, World!\n"

    Darmok and Jalad at Tanagra 0
Darmok and Jalad on the ocean

C:

#include <stdio.h>

int main() {
    printf("Hello, World!\n");

    return 0;
}