aboutsummaryrefslogtreecommitdiffstats
path: root/todo
blob: d4bde7ebedc464de023810b4f8fed60f69216394 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
 - [x] Better error messages
 - [x] Rustify the thingy 
 - [x] Return errors from runtime
---[-]-REPR----
 - [x] Pass files

 - [?] Globals
 - [x] Variables
 - [x] Scoping
 - [ ] Jumps
    -  [ ] Type annotations
 - [ ] If
 - [ ] Listor
 - [ ] For
 - [ ] Prepass, for typeing
 - [ ] Typing
 - [ ] Functions


global_names = {"name" => idx}
gloabls [(type var1), (type var2), (type var3)...]

==== q.tdy ====
use z
// Is this a closure? Yes.
f := () -> {
   print a
}

f := () -> {
}

<Var> <Typ>

a int := a + 1
a int := 3
a := 3

let <Var>:<Typ>

a : int = 123
a := z.a

==== z.tdy ====
use q  // Will we need imports? Yes.

q.f()  // What does this print? 123. q has a different scope.

g := () -> {
    print a
}

a := q.a  // Compilation error