checkpoint
[sbp.git] / tests / regression.tc
index fbc8a4a..6196b48 100644 (file)
 //    s ::= ()       => s0
 //}
 
+tibcase {
+    input 
+"
+  hello 
+    there
+    how
+     { are }
+";
+    output "yep";
+
+    s        ::= { Hello } => "yep"
+    w        ::= " " | "\n"
+    ws      !::= w**
+    Hello    ::= "hello" ws { ws "there" ws "how" ws { { "are" } ws } }
+}
+
 testcase {
     input "ab c";
     output "1:{{a b} {c}}";
@@ -267,7 +283,7 @@ testcase {
 
 indent  !::= ww
 outdent !::= " "  outdent " "
-           | " "  [~]*    "\n"
+           | " "  ([~]*)  "\n"
 
 any      !::= [~]*
 s         ::= !any "\n\n" !ww statement !ww "\n\n" !any => smt