This commit is contained in:
Kartik K. Agaram 2015-10-01 16:25:25 -07:00
parent b8515e8a0e
commit a6ce88d7ec

View File

@ -1,6 +1,12 @@
//: Introduce a new transform to perform various checks in instructions before
//: we start running them. It'll be extensible, so that we can add checks for
//: new recipes as we extend 'run' to support them.
//:
//: Doing checking in a separate part complicates things, because the values
//: of variables in memory and the processor (current_recipe_name,
//: current_instruction) aren't available at checking time. If I had a more
//: sophisticated layer system I'd introduce the simpler version first and
//: transform it in a separate layer or set of layers.
:(after "int main")
Transform.push_back(check_instruction);