From b98d3876b67a35f1d913ba374749bc97103b7790 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 14 May 2015 10:30:01 -0700 Subject: 1367 --- 034exclusive_container.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '034exclusive_container.cc') diff --git a/034exclusive_container.cc b/034exclusive_container.cc index 97150af4..6dc7a82b 100644 --- a/034exclusive_container.cc +++ b/034exclusive_container.cc @@ -105,3 +105,21 @@ case MAYBE_CONVERT: { products.at(0).push_back(result); break; } + +//:: Allow exclusive containers to be defined in mu code. + +:(scenario exclusive_container) +exclusive-container foo [ + x:number + y:number +] ++parse: reading exclusive-container foo ++parse: element name: x ++parse: type: 1 ++parse: element name: y ++parse: type: 1 + +:(before "End Command Handlers") +else if (command == "exclusive-container") { + insert_container(command, exclusive_container, in); +} -- cgit 1.4.1-2-gfad0