Home

The Biscuit Language (BL) is simple imperative programming language using LLVM backend implemented in C. Language syntax and all it’s features are still in development and not ready for “real” use yet. Biscuit is designed to be simple, fast and explicit.

Download

0.7.1 - BETA (Sep 13, 2020)

Documentation

File

Platform

Kind

blc-0.7.1-win64.zip

Windows 64 bit

Binary

blc-0.7.1-macos.zip

macOS

Binary

blc-0.7.1-linux.zip

Linux

Binary

blc-0.7.1-source.zip

Source

Installation

Biscuit compiler use platform specific native linker to create binary files. If you have linker already installed you can skip this step.

  • Link.exe - On Windows, installed with Visual Studio.

  • ld - On macOS, installed with XCode command line tools.

  • ld - On linux.

Unzip downloaded package, open terminal in root directory of BL and run:

cd bin
blc.exe -configure

This is needed only for the first-time use, or after update of build tools (Visual Studio update etc.).

You can eventually add bl executable to the system PATH.

To create first Hello World program, create new file called main.bl with following content:

main :: fn () s32 {
    print("Hello World!!!\n");
    return 0;
}

Then compile the file and execute:

blc.exe main.bl
out.exe

First program example

Installation from source code

Following guide uses master branch as default which contains latest unstable changes, if you want to use stable version, please specify one of the release branches during clone or checkout.

Requirements

  • git

  • CMake

  • LLVM 10

  • GCC/CLANG/Visual Studio compiler

Windows

You will need Visual Studio 2019 installed on your machine.

  • Run shell as an administrator.

  • Download and compile bl.

git clone https://github.com/travisdoor/bl.git
cd bl
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -Thost=x64 -DCMAKE_BUILD_TYPE=Release
  • Now you should be able to compile the bl target from the Visual Studio or from the terminal with following command.

cmake --build . --config Release
  • Use this for installation into Program Files

cmake --build . --config Release --target Install
  • Run bl.conf file generation

blc.exe -configure

macOS

  • Install command line tools.

xcode-select --install
  • Install LLVM 10 dev packages with your favourite package manager. Brew:

brew install llvm@10
  • Download and compile bl.

git clone https://github.com/travisdoor/bl.git
cd bl
mkdir build
cd build
cmake ..
make
  • For installation use:

[sudo] make install
  • Run bl.conf file generation

[sudo] blc -configure

Linux

  • Install LLVM 10 dev packages with your favourite package manager.

sudo apt install llvm-dev
  • Download and compile bl.

git clone https://github.com/travisdoor/bl.git
cd bl
mkdir build
cd build
cmake ..
make
  • For installation use:

[sudo] make install
  • Run bl.conf file generation

[sudo] blc -configure

Features & descriptions

  • Simple small language.

  • Manual memory management.

  • ABI compatibility with C libraries.

  • Opensource

  • Game development oriented.

  • Compilation to native binary.

  • Integrated interpreter.

  • Offer testing tools out of the box.

  • Rich type info in runtime.

  • Debuggable in gdb, lldb and Visual Studio.