lang

Version, currently master branch1 version
  • master branchlatestMar 26, 2018

github.com/twisterghost/taiga

A toy programming language written in Crystal

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  lang:
    github: twisterghost/taiga
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.23.1
License
MIT
Author
Michael Barrett
Target
  • lang from src/lang.cr

Dependencies

This version declares no dependencies.

README

Taiga Lang

Taiga is an experimental programming language that forces code to be thought of as simply as possible.

Taiga is functional in nature, with an iterative style syntax. In every expression, the variable _ will contain the previously computed value, creating streams of values through lines.

Each line can only contain one command followed by its arguments.

rout fib n
  eq n 1
  if _ return 1

  eq n 0
  if _ return 0

  sub n 1
  fib _
  let past1 _

  sub n 2
  fib _
  let past2 _

  add past1 past2
  endrout

fib 10
print _
# Prints 55