diff options
Diffstat (limited to 'cpp/011load')
-rw-r--r-- | cpp/011load | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/cpp/011load b/cpp/011load index 1e86ae3d..27ccb17d 100644 --- a/cpp/011load +++ b/cpp/011load @@ -5,8 +5,8 @@ recipe main [ 1:integer <- copy 23:literal ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} :(code) vector<recipe_number> add_recipes(string form) { @@ -167,8 +167,8 @@ recipe main [ 1:integer <- copy 23:literal ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} :(scenario parse_comment_amongst_instruction) recipe main [ @@ -176,8 +176,8 @@ recipe main [ 1:integer <- copy 23:literal ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} :(scenario parse_comment_amongst_instruction2) recipe main [ @@ -186,8 +186,8 @@ recipe main [ # comment ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} :(scenario parse_comment_amongst_instruction3) recipe main [ @@ -196,19 +196,19 @@ recipe main [ 2:integer <- copy 23:literal ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "2", value: 0, type: 1, properties: [2: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "2", value: 0, type: 1, properties: ["2": "integer"]} :(scenario parse_comment_after_instruction) recipe main [ 1:integer <- copy 23:literal # comment ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} :(scenario parse_label) recipe main [ @@ -222,40 +222,40 @@ recipe main [ 1:integer <- copy 23:literal/foo:bar:baz ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal, foo: bar:baz]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal", "foo": "bar":"baz"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} :(scenario parse_multiple_products) recipe main [ 1:integer, 2:integer <- copy 23:literal ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} -+parse: product: {name: "2", value: 0, type: 1, properties: [2: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} ++parse: product: {name: "2", value: 0, type: 1, properties: ["2": "integer"]} :(scenario parse_multiple_ingredients) recipe main [ 1:integer, 2:integer <- copy 23:literal, 4:integer ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: ingredient: {name: "4", value: 0, type: 1, properties: [4: integer]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} -+parse: product: {name: "2", value: 0, type: 1, properties: [2: integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: ingredient: {name: "4", value: 0, type: 1, properties: ["4": "integer"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} ++parse: product: {name: "2", value: 0, type: 1, properties: ["2": "integer"]} :(scenario parse_multiple_types) recipe main [ 1:integer, 2:address:integer <- copy 23:literal, 4:integer ] +parse: instruction: 1 -+parse: ingredient: {name: "23", value: 0, type: 0, properties: [23: literal]} -+parse: ingredient: {name: "4", value: 0, type: 1, properties: [4: integer]} -+parse: product: {name: "1", value: 0, type: 1, properties: [1: integer]} -+parse: product: {name: "2", value: 0, type: 2-1, properties: [2: address:integer]} ++parse: ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]} ++parse: ingredient: {name: "4", value: 0, type: 1, properties: ["4": "integer"]} ++parse: product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]} ++parse: product: {name: "2", value: 0, type: 2-1, properties: ["2": "address":"integer"]} :(scenario parse_properties) recipe main [ 1:integer:address/deref <- copy 23:literal ] -+parse: product: {name: "1", value: 0, type: 1-2, properties: [1: integer:address, deref: ]} ++parse: product: {name: "1", value: 0, type: 1-2, properties: ["1": "integer":"address", "deref": ]} |