1
2
3
4
5 :(before "End Primitive Recipe Declarations")
6 TO_TEXT,
7 :(before "End Primitive Recipe Numbers")
8 put(Recipe_ordinal, "to-text", TO_TEXT);
9 :(before "End Primitive Recipe Checks")
10 case TO_TEXT: {
11 if (SIZE(inst.ingredients) != 1) {
12 ¦ raise << maybe(get(Recipe, r).name) << "'to-text' requires a single ingredient, but got '" << inst.original_string << "'\n" << end();
13 ¦ break;
14 }
15
16 break;
17 }
18 :(before "End Primitive Recipe Implementations")
19 case TO_TEXT: {
20 products.resize(1);
21 products.at(0).push_back(new_mu_text(inspect(current_instruction().ingredients.at(0), ingredients.at(0))));
22 break;
23 }