diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-07 22:56:06 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-07 22:56:06 -0800 |
commit | 91abd257e27bd694bfc59c4cf1439171eef10a09 (patch) | |
tree | d1d3b7d8dad4b6461d97da64c9fa1b0fc4e0b1b3 /010vm.cc | |
parent | 82c886d71c12ad902ea8b9c81c7993af7ddf2d2b (diff) | |
download | mu-91abd257e27bd694bfc59c4cf1439171eef10a09.tar.gz |
2393 - redo 2391
Got that idea to work with a special-case for 'new'. Requires parsing new's first ingredient, performing the replacement, and then turning it back into a string. I didn't want to replace NEW with ALLOCATE right here, because then it messes with my invariant that transform should never see a naked ALLOCATE. Layer 11 still not working, but everything else is. Let's clean up before we diagnose the new breakage.
Diffstat (limited to '010vm.cc')
-rw-r--r-- | 010vm.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/010vm.cc b/010vm.cc index a4c5eb54..9ac47f6f 100644 --- a/010vm.cc +++ b/010vm.cc @@ -278,8 +278,10 @@ type_tree* new_type_tree(const string_tree* properties) { result->value = get(Type_ordinal, type_name); else if (is_integer(type_name)) // sometimes types will contain non-type tags, like numbers for the size of an array result->value = 0; - else + else { + cerr << "AAAAAAAAAAAAAA "; dump_property(properties, cerr); cerr << '\n'; result->value = -1; // should never happen; will trigger errors later + } } result->left = new_type_tree(properties->left); result->right = new_type_tree(properties->right); |