til 0.5.0

Yet another programming language


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Til

Just another programming language.

Example

# Most of the syntax is the same as Tcl, except
# we have "simple lists" using "()":
set x [math (1 + 2 + 3 + 1)]
print $x
# → 7

# Contrary to Tcl, "{}" enclosed things are
# NOT strings, but simply a "SubProgram".
# They are parsed as any other part
# of the language, just not
# immediately run.
if ($x > 6) {
    print "Great!"
}

# Til implements the concept of "streams", almost
# like stdin/stdout in shell script.
range 1 5 | foreach x { print $x }

# We also have dictionaries!
set d [dict (a 1) (b 2) (c 3)]

# Values can be extracted using Til extraction syntax:
print <$d a>  # prints "1"

# Extraction syntax is used to get values from lists, too:
set lista (a b c d e)
print <$lista 0>    # prints "a"
print <$lista 1 5>  # prints "(b c d e)"
Authors:
  • Cléber Zavadniak
Sub packages:
til:run, til:hellomodule
Dependencies:
none
Versions:
0.5.0 2021-Aug-29
0.4.0 2021-Jul-04
0.3.1 2021-Jul-04
0.3.0 2021-Jun-09
0.2.2 2021-Jun-07
Show all 14 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 20 downloads total

Score:
1.1
Short URL:
til.dub.pm