-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTODO
31 lines (27 loc) · 1.1 KB
/
TODO
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
Immediate:
- Implement WHILE/UNTIL loop, minus CONTINUE/BREAK.
- Similar concept to IF, just IF is repeatedly inserted back into the
accessor queue.
* i) Parse
ii) Process
- Free command sturcture after command finishes.
Long term:
- The variables hash is implemented. Use it. This includes
i) Parse variable assignments/use.
ii) On variable use, replace variable with value.
- Once we have variables, implement FOR.
- Once we have both WHILE and FOR, it'd be good to implement CONTINUE and BREAK.
Super long term:
Worry about subshells. When working with modifying Dash, this proved to be
kind of a wall. Get around that wall.
Less important:
- Optimize IF:
Right now either THEN or ELSE is inserted after evaluating the CONDITION.
If a subpart of the CONDITION evaluates to true, immediately insert the
THEN portion.
- Make IF more flexible: right now, both THEN and ELSE portions are required.
Technically only THEN portion is required.
- Implement ELIF.
Bugs:
- Noticed this when running make inside Parsh: Bash knows where stdbool.h is.
Parsh doesn't. Maybe add something to path?