From 201458e3bd2f1d79a0ea0b853552e9df267e92b1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 26 Dec 2016 20:44:10 -0800 Subject: 3713 - cross-link calls with definitions in html --- html/017parse_tree.cc.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/017parse_tree.cc.html') diff --git a/html/017parse_tree.cc.html b/html/017parse_tree.cc.html index c829c8ef..af1ce670 100644 --- a/html/017parse_tree.cc.html +++ b/html/017parse_tree.cc.html @@ -72,7 +72,7 @@ if ('onhashchange' in window) { 12 13 :(scenarios load) 14 :(scenario dilated_reagent_with_nested_brackets) - 15 def main [ + 15 def main [ 16 {1: number, foo: (bar (baz quux))} <- copy 34 17 ] 18 +parse: product: {1: "number", "foo": ("bar" ("baz" "quux"))} @@ -105,10 +105,10 @@ if ('onhashchange' in window) { 45 return NULL; 46 } 47 if (in.peek() != '(') { - 48 string s = next_word(in); + 48 string s = next_word(in); 49 if (s.empty()) { 50 assert(!has_data(in)); - 51 raise << "incomplete string tree at end of file (0)\n" << end(); + 51 raise << "incomplete string tree at end of file (0)\n" << end(); 52 return NULL; 53 } 54 string_tree* result = new string_tree(s); @@ -119,17 +119,17 @@ if ('onhashchange' in window) { 59 string_tree** curr = &result; 60 while (true) { 61 skip_whitespace_but_not_newline(in); - 62 assert(has_data(in)); + 62 assert(has_data(in)); 63 if (in.peek() == ')') break; 64 *curr = new string_tree(NULL, NULL); 65 if (in.peek() == '(') { 66 (*curr)->left = parse_string_tree(in); 67 } 68 else { - 69 string s = next_word(in); + 69 string s = next_word(in); 70 if (s.empty()) { 71 assert(!has_data(in)); - 72 raise << "incomplete string tree at end of file (1)\n" << end(); + 72 raise << "incomplete string tree at end of file (1)\n" << end(); 73 return NULL; 74 } 75 (*curr)->left = new string_tree(s); @@ -143,8 +143,8 @@ if ('onhashchange' in window) { 83 84 :(scenario dilated_reagent_with_type_tree) 85 % Hide_errors = true; // 'map' isn't defined yet - 86 def main [ - 87 {1: (foo (address array character) (bar number))} <- copy 34 + 86 def main [ + 87 {1: (foo (address array character) (bar number))} <- copy 34 88 ] 89 # just to avoid errors 90 container foo [ @@ -154,13 +154,13 @@ if ('onhashchange' in window) { 94 +parse: product: {1: ("foo" ("address" "array" "character") ("bar" "number"))} 95 96 :(scenario dilated_empty_tree) - 97 def main [ + 97 def main [ 98 {1: number, foo: ()} <- copy 34 99 ] 100 +parse: product: {1: "number", "foo": ()} 101 102 :(scenario dilated_singleton_tree) -103 def main [ +103 def main [ 104 {1: number, foo: (bar)} <- copy 34 105 ] 106 +parse: product: {1: "number", "foo": ("bar")} -- cgit 1.4.1-2-gfad0