Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabine-lang/libsabine
📚 | Helpful abstractions & libraries for sabine compiler
https://github.com/sabine-lang/libsabine
Last synced: 22 days ago
JSON representation
📚 | Helpful abstractions & libraries for sabine compiler
- Host: GitHub
- URL: https://github.com/sabine-lang/libsabine
- Owner: sabine-lang
- Created: 2024-11-25T14:45:42.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-11-25T14:45:42.000Z (about 1 month ago)
- Last Synced: 2024-11-25T18:41:19.587Z (about 1 month ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A toy compiler named after Sabine.
## Motivation
C is raw and it needs lotta abstractions to ease the development. Therefore, this repo was created to utilize all necessary implementations as a static library. Currently, the followings are implemented and can be used from your repo:
- buffer.h [[Source]](./include/sabine/buffer.h)
- vector.h [[Source]](./include/sabine/vector.h)## Development
The project primarily utilizes Nix package manager for development. You need to have Nix package manager
installed on your machine. Lowkey, you migth try running project with your distro's coreutils dev toolchain
but I'm not going to guarantee you anything.```shell
# This will use your current NixOS'es nixpkgs
nix-shell# Utilize flake's locked nixpkgs version
nix develop -c $SHELL
```## Compiling
> There used to be gnu makefile support, now it's gone. Maybe will be back in the future, but I'm not
planning to support further. My bad...The manual shown below uses LLVM for compilation and development environment has been set up accordingly.
### nix run / nix build
```shell
nix build .
```### Manual
```shell
mkdir -p ./build
cd ./build
cmake ..
cmake --build .
ls -la ./buld # there should be libsabine.a
```## License
This project is licensed under WTFPL license which grants you what the fuckever you want. Just don't
roast me posting shit on X. I'm not that nerd of geek as you may think.