Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabine-lang/sabine
😠| Perfect opportunity to lock in
https://github.com/sabine-lang/sabine
c compiler nix sabine toy-project
Last synced: 29 days ago
JSON representation
😠| Perfect opportunity to lock in
- Host: GitHub
- URL: https://github.com/sabine-lang/sabine
- Owner: sabine-lang
- License: wtfpl
- Created: 2024-11-20T16:56:23.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-04T14:18:48.000Z (about 1 month ago)
- Last Synced: 2024-12-04T14:22:15.109Z (about 1 month ago)
- Topics: c, compiler, nix, sabine, toy-project
- Language: C
- Homepage: github:sabine-lang/sabine#default
- Size: 2.85 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A toy compiler named after Sabine.
## Motivation
![The Xeet](./.github/assets/xeet.png)
The idea actually sparked after this xeet: [Source](https://x.com/sabine_s_/status/1859272820720537970?s=61).
I was just havin' a good day doin' my job and spamming shit at X. Well, saw this post and I was like: "Aight,
we ballin' :ball:!".> I ain't gonna ship any production on this language, the project solely serves for entertainment &
educational purpose## 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 .
./sabine
```## Running (easily)
Thanks to all those Nix efforts, you can run the project without having need to clone this repository
simply by running:```shell
nix run github:orzklv/sabine
```## 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.