about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-26 20:00:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-26 20:02:18 -0700
commitae256ea13efc77cc767a658c6f61b12cd7461e21 (patch)
tree18dbcb26423b1d17d0639995c4bd29ec8f3d5c17 /011load.cc
parent7bba6e7bb7fd7bfdfc71626a34a08cb96a084b74 (diff)
downloadmu-ae256ea13efc77cc767a658c6f61b12cd7461e21.tar.gz
2283 - represent each /property as a tree
Diffstat (limited to '011load.cc')
-rw-r--r--011load.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/011load.cc b/011load.cc
index 19756fc1..620d6f40 100644
--- a/011load.cc
+++ b/011load.cc
@@ -186,12 +186,6 @@ void slurp_word(istream& in, ostream& out) {
   }
 }
 
-void skip_whitespace(istream& in) {
-  while (!in.eof() && isspace(in.peek()) && in.peek() != '\n') {
-    in.get();
-  }
-}
-
 void skip_whitespace_and_comments(istream& in) {
   while (true) {
     if (in.eof()) break;
@@ -246,6 +240,7 @@ for (long long int i = 0; i < SIZE(recently_added_recipes); ++i) {
 // Clear Other State For recently_added_recipes
 recently_added_recipes.clear();
 
+:(code)
 :(scenario parse_comment_outside_recipe)
 # this comment will be dropped by the tangler, so we need a dummy recipe to stop that
 recipe f1 [ ]
@@ -350,7 +345,7 @@ recipe main [
 recipe main [
   1:number:address/lookup <- copy 23
 ]
-+parse:   product: {"1": <"number" : "address">, "lookup": ""}
++parse:   product: {"1": <"number" : "address">, "lookup": <>}
 
 //: this test we can't represent with a scenario
 :(code)