-
Notifications
You must be signed in to change notification settings - Fork 2
/
TO-DO.txt
38 lines (31 loc) · 845 Bytes
/
TO-DO.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
26
27
28
29
30
31
32
33
34
35
36
37
38
DONE
assign
if else if else
declare identifier = expression;
declare function var x = function(){};
vars and function calls on expressions
function call with arguments
function declaration with parameters
declare function function x (){}
Optional semicolons
numbers and strings sent as arguments
fix end of if
while
Return
AST
Taking a second look at expressions complexity
scope: error on call to non declared things
bizarre js function declaration order / autofix of AST
function parameters and arguments on tree
DOING / NEXT
code generation
TODO
null
parenthesis on expressions
standard library js functions, like console.log
expressions with strings -> + = concatenation
handle global vars better
fcal on arg list
BUGS
Currently reading x = -2; as operator + number instead of negative number
blank stmt blocks will show as "blank"