diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-05 18:49:21 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-05 18:49:21 -0700 |
commit | 141c540b6a49b7e94e61b0b2440ec5cc2991e653 (patch) | |
tree | 62147305aff693cac51480ed25fb2be38bf9728a | |
parent | d135851ef94bf15f258b779098404ef6adac92b6 (diff) | |
download | mu-141c540b6a49b7e94e61b0b2440ec5cc2991e653.tar.gz |
2248
-rw-r--r-- | 030container.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/030container.cc b/030container.cc index 4adf05a0..bc87d2fc 100644 --- a/030container.cc +++ b/030container.cc @@ -419,6 +419,12 @@ void insert_container(const string& command, kind_of_type kind, istream& in) { t.size = SIZE(t.elements); } +void skip_bracket(istream& in, string message) { + skip_whitespace_and_comments(in); + if (in.get() != '[') + raise << message << '\n' << end(); +} + :(scenarios run) :(scenario container_define_twice) container foo [ @@ -585,12 +591,3 @@ recipe main [ ] +mem: storing 3 in location 1 +mem: storing 4 in location 2 - -//:: helpers - -:(code) -void skip_bracket(istream& in, string message) { - skip_whitespace_and_comments(in); - if (in.get() != '[') - raise << message << '\n' << end(); -} |