An open API service indexing awesome lists of open source software.

https://github.com/albeva/lbc

Simple BASIC compiler
https://github.com/albeva/lbc

Last synced: about 1 month ago
JSON representation

Simple BASIC compiler

Awesome Lists containing this project

README

          

# lbc

A BASIC compiler with an LLVM backend, written in C++.

The goal is to build a modern language with BASIC-inspired syntax that is fully C ABI compatible — allowing direct
interop with C libraries without wrappers or bindings.

## Requirements

- C++23 compiler (Clang, GCC or MSVC)
- CMake 4.2+
- Ninja
- LLVM 22+

## Building

```bash
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Debug
ninja -C build
```

The executable is output to `bin/lbc`.

## Testing

```bash
./build/tests/tests
```