GmosNM / bl

Simple imperative programming language created for fun.

Home Page:https://biscuitlang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Windows Linux macOS

Twitter URL

The Biscuit Language (BL) is a simple imperative programming language using LLVM backend and compiler implemented in C. Language syntax and all its features are still in development. Biscuit is designed to be simple, fast and explicit.

Features

  • Strongly typed.
  • Embedded rich runtime type information.
  • Polymorphic functions and structures (generics).
  • Simple structure inheritance.
  • Compile-time execution (experimental).
  • Compile-time function arguments; allow passing types as values (experimental).
  • C ABI compatible (C library functions can be directly called).
  • Runtime debugging is possible in Visual Studio/gdb/lldb.
  • Explicit function overloading.
  • Integrated build system.
  • Module management.
  • Unit testing system.
  • Automatic documentation generation.
  • Defer statement.
  • Multiple return values.
  • Custom memory allocators.
  • Basic support for game development via extra packages.
  • Supports Windows, Linux and macOS.
  • Nested functions.
  • Clean and simple JAI-like syntax.
  • And more...

Installation

See the installation guide here.

Example

HelloWorld :: struct {
    hello: s32;
    world: s32;
};

main :: fn () s32 {
    info :: cast(*TypeInfoStruct) typeinfo(HelloWorld);

    loop i := 0; i < info.members.len; i += 1 {
        print("% ", info.members[i].name);
    }
    print("!!!\n");

    return 0;
}

See more examples here.

Discord Server

https://discord.gg/DDTCcYzb9h

Projects Using BL

Tine Text Editor

Text editor I use.

Vulkan Renderer & The Game

Screenshot of an unnamed 3D experimental game created using BL.

Space Shooter

Contribution

Please follow the instructions on wiki.

About

Simple imperative programming language created for fun.

https://biscuitlang.org

License:MIT License


Languages

Language:C 99.0%Language:C++ 0.8%Language:CMake 0.1%Language:Emacs Lisp 0.1%Language:Vim Script 0.0%Language:Shell 0.0%Language:Assembly 0.0%