Skip to content

Releases: dotlang/dot

Release v0.3.0

10 Dec 09:06
876454f

Choose a tag to compare

In this version, a simple support for function definition and call is provided. Functions can have multiple inputs and one output. Input and output can be either of int, float, char, bool.
Now we have two basic functions: int to cast something to int and assert to do an assertion on a basic comparison in the form on a = b. If assertion fails, the application aborts.
Support for + and - as a prefix to numbers, and <<, >> operators for bit shifting is also added.
You can also explicitly specify a binding type: x:int := 10.

You can run x.sh to execute all unit tests.

Usage:

  1. Compile your source code: ./dot input_file.dot
  2. Execute output: ./input_file

Release v0.2.0

02 Dec 13:35
c17d825

Choose a tag to compare

This version of the compiler has support for basic bindings and functions. By basic, it means they can only be integers without accepting any input. You can combine them in expressions.
Also you can define a code block for a function which can have a number of bindings and a return statement :: at the end.

You can run all unit tests by running x.sh script from bash prompt.

Usage:

  1. Compile your source code file: ./dot input_file.dot
  2. Execute the output file: ./input_file

Release v0.1.0

28 Nov 06:06
e4fc13f

Choose a tag to compare

This is the most basic compiler: Can only handle one input file containing only one function (named main) which can only have basic math expressions (e.g. main := () -> 1+ (2-1) + (3*2)).

Usage:

  1. Compile: ./dot input_file.dot
  2. Execute: ./input_file

Requirements: Linux OS, clang, LLVM runtime.