-
Notifications
You must be signed in to change notification settings - Fork 2
/
high-level.html.pm
29 lines (21 loc) · 713 Bytes
/
high-level.html.pm
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
#lang pollen
NOTES:
- all stack commands should be prefixed with a period
- entire codebase must be stack commands before we begin high-level language implementation
- when searching for curly braces, make sure they are simply not prefixed with a single quote (`'`)
◊section[1 null]{Plan}
DO THIS FOR STACK:
- implement `#def` macros
DO THIS FOR HL:
- build naive allocator
- scan for global var declarations, store indicies in tape
- actually parse stuff...
- integers
- chars
- unary expressions
- binomial expressions
- for each function...
- store parameter indicies in tape
- store local variable indicies in tape
- generate function declaration translated wrapper
- call `main` at end of codebase