diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-28 21:53:51 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-28 21:53:51 -0800 |
commit | a1b06887864811a3fa95a0caf4c95dd07321b52d (patch) | |
tree | ff10a3ea9a9edc46a7eaaa6f1e3eea584a6902ab | |
parent | dfdfc7e94af9cc304c94e2acff3238befe463f39 (diff) | |
download | mu-a1b06887864811a3fa95a0caf4c95dd07321b52d.tar.gz |
2493 - eliminate a couple of dependencies
In general you only want to specify one transform in terms of (before/after) another if the other direction wouldn't work. Otherwise try to make it work by just pushing transforms at the start/end of the list.
-rw-r--r-- | 021check_instruction.cc | 2 | ||||
-rw-r--r-- | 041jump_target.cc | 2 | ||||
-rw-r--r-- | 999spaces.cc | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc index ada4333d..7b177993 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -8,7 +8,7 @@ //: sophisticated layer system I'd introduce the simpler version first and //: transform it in a separate layer or set of layers. -:(after "Transform.push_back(update_instruction_operations)") +:(before "End Transforms") Transform.push_back(check_instruction); // idempotent :(code) diff --git a/041jump_target.cc b/041jump_target.cc index 00e9fc39..947ab6ba 100644 --- a/041jump_target.cc +++ b/041jump_target.cc @@ -18,7 +18,7 @@ recipe main [ :(before "End Mu Types Initialization") put(Type_ordinal, "label", 0); -:(before "Transform.push_back(transform_braces)") +:(after "Begin Transforms") Transform.push_back(transform_labels); // idempotent :(code) diff --git a/999spaces.cc b/999spaces.cc index 18670da1..55d0882c 100644 --- a/999spaces.cc +++ b/999spaces.cc @@ -39,7 +39,7 @@ assert(Max_callstack_depth == 9989); //: ↓ ↳ 56.4 fill in reply ingredients //: ↳ 52.2 check fragments //: -//: ↱ 41 transform labels +//: 41 transform labels //: 40 transform braces //: //: ↱ 48 check types by name @@ -51,6 +51,6 @@ assert(Max_callstack_depth == 9989); //: ↳ 42 transform names //: --- //: 13 update inst.operation -//: ↳ 21 check inst -//: ↳ 43 transform 'new' to 'allocate' +//: 21 check inst +//: ↳ 43 transform 'new' to 'allocate' //: end transforms |