]> git.lizzy.rs Git - uwu-lang.git/blob - src/main.c
Initial commit
[uwu-lang.git] / src / main.c
1 #include "err.h"
2 #include "vm.h"
3
4 int main(int argc, char *argv[])
5 {
6         if (argc < 2)
7                 error("usage: %s <module>\n", argv[0]);
8
9         vm_run_file(argv[0], argv[1]);
10         return 0;
11 }
12
13 /*
14
15 0123
16 "asd"
17 $arg
18 &fnname
19 func(asd)
20
21 :int:add
22 :str:cat
23 :boo:and
24 :arr:arr
25 :set:set
26
27 integer::add()
28 integer::sub()
29 integer::mul()
30 integer::div()
31 integer::mod()
32 integer::pow()
33
34 string::concat()
35 string::split()
36 string::find()
37
38 array::array()
39 array::select()
40 array::insert()
41 array::length()
42 array::reduce()
43 array::map()
44
45 set::set()
46 set::pair()
47 set::select()
48 set::insert()
49 set::remove()
50 set::contains()
51
52 boolean::and()
53 boolean::or()
54 boolean::xor()
55
56 */