Releases: dotlang/dot
Release v0.3.0
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:
- Compile your source code:
./dot input_file.dot - Execute output:
./input_file
Release v0.2.0
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:
- Compile your source code file:
./dot input_file.dot - Execute the output file:
./input_file
Release v0.1.0
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:
- Compile:
./dot input_file.dot - Execute:
./input_file
Requirements: Linux OS, clang, LLVM runtime.