linux:
curl https://raw.githubusercontent.com/gioseaxmc/swami/main/install.py | sudo python
windows:
curl https://raw.githubusercontent.com/gioseaxmc/swami/main/install.py | python
A low level, compiled language written in python
- Convenient
- Statically typed
- Turing Completeness (see examples/09_rule_110.sw)
- Self Hosted
- Natively compiled
- Clang's LLVM
- Any C target (such as mingw32 or msvc)
include { "stdlib.sw" }
func int main() {
printf("Hello World!\n");
}$ python swami.py main.sw -o main
$ main
Hello World!
include {
"stdlib.sw",
"files.sw",
}
func int main(int argc, ptr ptr char argv) {
for(i=1, i<argc, i++, {
contents = read_file(argv[i]).contents;
printf("%s\n", contents);
});
return 0;
}$ python swami.py cat.sw -o cat
$ cat main.sw
include { "stdlib.sw" }
func int main() {
printf("Hello World!\n");
}