diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-02-20 23:46:04 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-02-20 23:55:34 -0800 |
commit | f02842a919823199a1fa41c0a244c3ce3409299d (patch) | |
tree | 2677781aa4d6873230014fbd1ed952c8577f8fe2 /cpp/011load | |
parent | 6eec184e408fdc70497edabd59415cf14e394bcf (diff) | |
download | mu-f02842a919823199a1fa41c0a244c3ce3409299d.tar.gz |
804 - reagent can have multiple types
Diffstat (limited to 'cpp/011load')
-rw-r--r-- | cpp/011load | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/011load b/cpp/011load index 0193eeac..4c019c1c 100644 --- a/cpp/011load +++ b/cpp/011load @@ -154,3 +154,13 @@ recipe main [ +parse: ingredient: {name: "4", type: 1} +parse: product: {name: "1", type: 1} +parse: product: {name: "2", type: 1} + +:(scenario parse_multiple_types) +recipe main [ + 1:integer, 2:address:integer <- copy 23:literal, 4:integer +] ++parse: instruction: 1 ++parse: ingredient: {name: "23", type: 0} ++parse: ingredient: {name: "4", type: 1} ++parse: product: {name: "1", type: 1} ++parse: product: {name: "2", type: 2-1} |