-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTODO.txt
25 lines (23 loc) · 1.25 KB
/
TODO.txt
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
[ ] create the actual VM
- [X] create parser for text -> opcodes
- [ ] create the system for strings (probably just array selection)
- [ ] create all the different op codes
- [X] create the vm handler object, contains stack, pointer, etc.
- [X] create actual VM execution function (shape does it nicely, can referr to that)
[ ] create the compiler
WIP, for now we can focus on the basics
- [X] handle VariableDeclaration
- [X] handle CallExpression (not wrapped FunctionExpression for now)
- [X] handle CallExpression inputs and outputs
- [X] make call expression inputs make use of an array so if can have infinite inputs or 0 inputs, currently it only supports 1 input and it has to be a string (i think).
- [X] support numeric literals as callexpress inputs when not proxied thru a variable VariableDeclaration
- [ ] handle arrays
- [ ] for loops
- [ ] objects
- [ ] custom functions (would be a set of instructions and pointer map pushed into the stack and used in .run()?)
- [ ] if else statements
- [ ] all different types of math
Code optimizations:
- [X] Make the compiler a class
- [ ] Make a function for adding bytes
- [ ] Make a function for adding pointers