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