nix like configuration syntax implemented in odin
- Odin 100%
|
movva
49b3a5a316
Signed-off-by: movva <disruptivemovva@disroot.org> |
||
|---|---|---|
| dandy @5476eac6eb | (◕‿◕✿) gss -> nasl, adds variable references | |
| examples/many_types_dump | (◕‿◕✿) project restructuration and README fix | |
| nasll | (◕‿◕✿) now using proper error handling, no more depending on dandy for io | |
| .gitignore | (◕‿◕✿) init: ready, set, BEWM! | |
| .gitmodules | (◕‿◕✿) init: ready, set, BEWM! | |
| build.odin | (◕‿◕✿) project restructuration and README fix | |
| README.md | (◕‿◕✿) project restructuration and README fix | |
nasll: NASal Lazy configuration Language
tsoding stole ideas from Nix: https://www.youtube.com/watch?v=JWIregr388Y
so i stole ideas from him
example sample
config={ user="movva", env={ PATH=~/".local"/"bin",},},style={ cover={ x=56.7%,// '%' divides by 100
y=1%, colour=0xFF0000,},},using
just put the directory ./nasll/ in your project tree where you can use it
Note: In the future it will be possible to pass
-bundleto the build program to generate a .tar.gz archive.
building
to run the example, run:
$ odin run build.odin -file # you can also pass '-- -run' to directly run it
$ ./bin/nasll_example
why odin?
closest to Jai that's what Mr. zozin used.
also i like odin, i had fun tearing apart anys and the Type_Info of their typeid to compare them at runtime, clunky but it works :))
made with love <3 (a lot of it wink wink)