Permalink
Please sign in to comment.
Browse files
Tweaks to store only unsigned integers in the AST.
This makes for simpler 'oheap' encoding. - Make span IDs start from 1, so we can use 0 for undefined. - Initialize ASDL int? type to 0 rather than None. We don't want -1 to be undefined because oheap only has unsigned ints right now. We would lose half our bits.
- Loading branch information...
Showing
with
29 additions
and 13 deletions.
- +3 −0 asdl/arith.asdl
- +5 −0 asdl/arith_ast_test.py
- +10 −3 asdl/py_meta.py
- +5 −4 core/alloc.py
- +1 −1 core/alloc_test.py
- +5 −5 core/lexer.py
0 comments on commit
af0decd