41 lines
744 B
Markdown
41 lines
744 B
Markdown
# sx
|
|
|
|
*** HIGHLY EXPERIMENTAL *** DON'T USE ***
|
|
|
|
This experiment is trying to answer a few questions:
|
|
|
|
Q: Can we have an system language to build declarative ui ?
|
|
|
|
|
|
NOTE:
|
|
> i hope you have memory... currently it doesn't free anything :D
|
|
|
|
## Building
|
|
|
|
Requires **Zig 0.16+** and **LLVM 19**.
|
|
|
|
```sh
|
|
zig build
|
|
```
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
# compile to binary
|
|
sx build examples/06-generic.sx
|
|
|
|
# compile and run
|
|
sx run examples/06-generic.sx
|
|
|
|
# emit LLVM IR
|
|
sx ir examples/06-generic.sx
|
|
|
|
# start the language server
|
|
sx lsp
|
|
```
|
|
|
|
## Acknowledgments
|
|
|
|
- [Jonathan Blow](https://en.wikipedia.org/wiki/Jonathan_Blow) — for Jai, the language that inspired this one
|
|
- [Andrew Kelley](https://andrewkelley.me) — for Zig, which made this compiler a joy to write
|