Permalink
Please sign in to comment.
Browse files
Introduce ParseContext and thread it throughout the code.
This is mainly motivated by 'alias'. Aliases are unfortunately truly global state. It also breaks some longstanding circular imports between word_parse.py and cmd_parse.py, which is nice. All unit, spec, and gold tests pass. Still need to do some cleanup.
- Loading branch information...
Showing
with
116 additions
and 103 deletions.
- +8 −5 bin/oil.py
- +13 −10 core/cmd_exec.py
- +4 −6 core/cmd_exec_test.py
- +5 −5 core/completion.py
- +5 −2 core/completion_test.py
- +2 −1 osh/arith_parse_test.py
- +2 −1 osh/bool_parse_test.py
- +6 −8 osh/cmd_parse.py
- +2 −5 osh/cmd_parse_test.py
- +62 −54 osh/parse_lib.py
- +4 −4 osh/word_parse.py
- +3 −2 osh/word_parse_test.py
Oops, something went wrong.
0 comments on commit
8995c56