diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-12-30 14:18:15 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-12-30 14:18:15 +0100 |
commit | ecc06c082036aa93f6810ec21e73610c55f5a57b (patch) | |
tree | aff479c3bc5b39ead9f65dffb01d399b341fa4ba /src/main.c | |
download | uwu-lang-ecc06c082036aa93f6810ec21e73610c55f5a57b.tar.xz |
Initial commit
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..60c22ba --- /dev/null +++ b/src/main.c @@ -0,0 +1,56 @@ +#include "err.h" +#include "vm.h" + +int main(int argc, char *argv[]) +{ + if (argc < 2) + error("usage: %s <module>\n", argv[0]); + + vm_run_file(argv[0], argv[1]); + return 0; +} + +/* + +0123 +"asd" +$arg +&fnname +func(asd) + +:int:add +:str:cat +:boo:and +:arr:arr +:set:set + +integer::add() +integer::sub() +integer::mul() +integer::div() +integer::mod() +integer::pow() + +string::concat() +string::split() +string::find() + +array::array() +array::select() +array::insert() +array::length() +array::reduce() +array::map() + +set::set() +set::pair() +set::select() +set::insert() +set::remove() +set::contains() + +boolean::and() +boolean::or() +boolean::xor() + +*/ |