summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-05-25 12:05:01 -0400
committerAdrian Thurston <thurston@complang.org>2013-05-25 12:05:01 -0400
commit8a9547b9628699717dc095e9cdebd4d34990311d (patch)
tree11ce1be0b5f81a2d5243d9bf06ff38389de763cf
parent38db5b297d028a52b1102d0741b84feb34fe7bfb (diff)
downloadcolm-8a9547b9628699717dc095e9cdebd4d34990311d.tar.gz
updated tests for ref<> delimiters
-rw-r--r--test/concat1.lm2
-rw-r--r--test/concat2.lm2
-rw-r--r--test/tags3.lm6
-rw-r--r--test/tags4.lm6
-rw-r--r--test/travs1.lm16
5 files changed, 16 insertions, 16 deletions
diff --git a/test/concat1.lm b/test/concat1.lm
index d7812465..cb64312b 100644
--- a/test/concat1.lm
+++ b/test/concat1.lm
@@ -63,7 +63,7 @@ item* concatItems( IL1: item* IL2: item* )
return IL1
}
-item* expandIncludes( ItemList: ref item* )
+item* expandIncludes( ItemList: ref<item*> )
{
for IL: item* in ItemList {
if match IL
diff --git a/test/concat2.lm b/test/concat2.lm
index 741d17a5..cb1a2f00 100644
--- a/test/concat2.lm
+++ b/test/concat2.lm
@@ -64,7 +64,7 @@ item* concatItems( IL1: item* IL2: item* )
return IL1
}
-item* expandIncludes( ItemList: ref item* )
+item* expandIncludes( ItemList: ref<item*> )
{
for IL: item* in ItemList {
if match IL
diff --git a/test/tags3.lm b/test/tags3.lm
index c2082e21..ef84ac8f 100644
--- a/test/tags3.lm
+++ b/test/tags3.lm
@@ -192,7 +192,7 @@ context tags
# END GRAMMAR
#
- int addDefaultAltTags( Start: ref start )
+ int addDefaultAltTags( Start: ref<start> )
{
for T: open_tag in Start {
require T
@@ -242,7 +242,7 @@ context tags
# Finds unclosed tags and puts the content after the tag. Afterwards
# all unclosed tags will be empty 'inside'.
- int flatten( Start: ref start )
+ int flatten( Start: ref<start> )
{
for TL: item* in Start {
require TL
@@ -274,7 +274,7 @@ context tags
}
}
-# int close( Start: ref start )
+# int close( Start: ref<start> )
# {
# for TL: item in Start {
# require TL
diff --git a/test/tags4.lm b/test/tags4.lm
index 491be4f1..1136d85f 100644
--- a/test/tags4.lm
+++ b/test/tags4.lm
@@ -213,7 +213,7 @@ context tags
# END GRAMMAR
#
- int addDefaultAltTags( Start: ref start )
+ int addDefaultAltTags( Start: ref<start> )
{
for T: open_tag in Start {
require T
@@ -264,7 +264,7 @@ end # tags
# Finds unclosed tags and puts the content after the tag. Afterwards
# all unclosed tags will be empty 'inside'.
-#int flatten( ref start Start )
+#int flatten( Start: ref<start> )
#{
# for TL: item* in Start {
# require TL
@@ -298,7 +298,7 @@ end # tags
# }
#}
#
-#int close( ref start Start )
+#int close( Start: ref<start> )
#{
# for TL: item in Start {
# require TL
diff --git a/test/travs1.lm b/test/travs1.lm
index 83240ba8..22dd6dd7 100644
--- a/test/travs1.lm
+++ b/test/travs1.lm
@@ -69,7 +69,7 @@ parse S: start[stdin]
# Top-Down, Left-Right
#
-int do_topdown_leftright( T: ref any )
+int do_topdown_leftright( T: ref<any> )
{
for C:any in child(T) {
yield C
@@ -77,7 +77,7 @@ int do_topdown_leftright( T: ref any )
}
}
-iter topdown_leftright( T: ref any )
+iter topdown_leftright( T: ref<any> )
{
do_topdown_leftright( T )
}
@@ -86,7 +86,7 @@ iter topdown_leftright( T: ref any )
# Bottom-Up, Left-Right
#
-int do_bottomup_leftright( T: ref any )
+int do_bottomup_leftright( T: ref<any> )
{
for C:any in child(T) {
do_bottomup_leftright( C )
@@ -94,7 +94,7 @@ int do_bottomup_leftright( T: ref any )
}
}
-iter bottomup_leftright( T: ref any )
+iter bottomup_leftright( T: ref<any> )
{
do_bottomup_leftright( T )
}
@@ -104,7 +104,7 @@ iter bottomup_leftright( T: ref any )
# Top-Down, Right-Left
#
-int do_topdown_rightleft( T: ref any )
+int do_topdown_rightleft( T: ref<any> )
{
for C:any in rev_child(T) {
yield C
@@ -112,7 +112,7 @@ int do_topdown_rightleft( T: ref any )
}
}
-iter topdown_rightleft( T: ref any )
+iter topdown_rightleft( T: ref<any> )
{
do_topdown_rightleft( T )
}
@@ -121,7 +121,7 @@ iter topdown_rightleft( T: ref any )
# Bottom-Up, Right-Left
#
-int do_bottomup_rightleft( T: ref any )
+int do_bottomup_rightleft( T: ref<any> )
{
for C:any in rev_child(T) {
do_bottomup_rightleft( C )
@@ -129,7 +129,7 @@ int do_bottomup_rightleft( T: ref any )
}
}
-iter bottomup_rightleft( T: ref any )
+iter bottomup_rightleft( T: ref<any> )
{
do_bottomup_rightleft( T )
}