summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-02-12 18:46:36 -0500
committerAdrian Thurston <thurston@complang.org>2013-02-12 18:46:36 -0500
commitdb6d1e59466b839f3d0615cffcf5ba688b695263 (patch)
tree4a2831030078fe339d3df81fa91bf5db60ba146e
parent3e4073f292d52de13de0c57c0700f34256263427 (diff)
downloadcolm-db6d1e59466b839f3d0615cffcf5ba688b695263.tar.gz
updated examples for namespace and context syntax changes
-rw-r--r--test/accum2.lm2
-rw-r--r--test/accumbt2.lm2
-rw-r--r--test/accumbt3.lm2
-rw-r--r--test/binary1.lm2
-rw-r--r--test/btscan1.lm4
-rw-r--r--test/btscan2.lm4
-rw-r--r--test/context1.lm2
-rw-r--r--test/context2.lm2
-rw-r--r--test/context3.lm2
-rw-r--r--test/counting1.lm2
-rw-r--r--test/counting3.lm2
-rw-r--r--test/counting4.lm2
-rw-r--r--test/generate1.lm2
-rw-r--r--test/generate2.lm2
-rw-r--r--test/heredoc.lm2
-rw-r--r--test/ignore4.lm4
-rw-r--r--test/include1.lm6
-rw-r--r--test/lookup1.lm2
-rw-r--r--test/maxlen.lm2
-rw-r--r--test/rubyhere.lm2
-rw-r--r--test/superid.lm2
-rw-r--r--test/tags1.lm2
-rw-r--r--test/tags3.lm2
-rw-r--r--test/tags4.lm2
-rw-r--r--test/translate2.lm2
-rw-r--r--test/undofrag1.lm2
-rw-r--r--test/undofrag2.lm2
-rw-r--r--test/undofrag3.lm2
28 files changed, 33 insertions, 33 deletions
diff --git a/test/accum2.lm b/test/accum2.lm
index 58729f91..6f640b3a 100644
--- a/test/accum2.lm
+++ b/test/accum2.lm
@@ -23,7 +23,7 @@ def item
def start
[item*]
-end ctx
+end # ctx
cons SP: parser<ctx::start> []
diff --git a/test/accumbt2.lm b/test/accumbt2.lm
index 529bf849..ad41b285 100644
--- a/test/accumbt2.lm
+++ b/test/accumbt2.lm
@@ -32,7 +32,7 @@ lex
| [A2 item2* ';' '\n']
end
-end accum_bt
+end # accum_bt
AccumBt: accum_bt = cons accum_bt[]
AccumBt.OneParser = cons parser<accum_bt::one>[]
diff --git a/test/accumbt3.lm b/test/accumbt3.lm
index 18e1de3f..28a7fd16 100644
--- a/test/accumbt3.lm
+++ b/test/accumbt3.lm
@@ -76,7 +76,7 @@ def two
[A1 item* '!' '\n']
| [A2 item* ';' '\n']
-end accum_bt
+end # accum_bt
cons AccumBt: accum_bt[]
AccumBt.NestedParser = cons parser<nested>[]
diff --git a/test/binary1.lm b/test/binary1.lm
index 68a7f23d..d0b43703 100644
--- a/test/binary1.lm
+++ b/test/binary1.lm
@@ -482,7 +482,7 @@ int print_all_names( s: start )
}
}
-end binary
+end # binary
cons Binary: binary[]
Binary.CL = cons list<int> []
diff --git a/test/btscan1.lm b/test/btscan1.lm
index 6afa707b..c123bec7 100644
--- a/test/btscan1.lm
+++ b/test/btscan1.lm
@@ -10,7 +10,7 @@ namespace r1
def line [ '!' 'a' 'b' 'b' 'a']
-end r1
+end # r1
#
# R2
@@ -25,7 +25,7 @@ namespace r2
def line [ '!' id ]
-end r2
+end # r2
def item
[r1::line]
diff --git a/test/btscan2.lm b/test/btscan2.lm
index bcad2f66..095f550d 100644
--- a/test/btscan2.lm
+++ b/test/btscan2.lm
@@ -7,7 +7,7 @@ namespace r1
def line [ '!' 'a' 'b' 'b' 'a']
-end r1
+end # r1
namespace r2
@@ -19,7 +19,7 @@ namespace r2
def line [ '!' id ]
-end r2
+end # r2
def item
[r1::line]
diff --git a/test/context1.lm b/test/context1.lm
index 121390cc..b652ed3a 100644
--- a/test/context1.lm
+++ b/test/context1.lm
@@ -24,7 +24,7 @@ context ctx
def start
[item*]
-end ctx
+end # ctx
CTX: ctx = cons ctx[]
parse InputP: ctx::start( CTX ) [ stdin ]
diff --git a/test/context2.lm b/test/context2.lm
index 8ff3feb0..1a8ebe96 100644
--- a/test/context2.lm
+++ b/test/context2.lm
@@ -87,7 +87,7 @@ context ruby_here
def start
[item*]
-end ruby_here
+end # ruby_here
CTX: ruby_here = cons ruby_here []
diff --git a/test/context3.lm b/test/context3.lm
index 834a1639..3b04e9ae 100644
--- a/test/context3.lm
+++ b/test/context3.lm
@@ -33,7 +33,7 @@ context ctx
def start
[item*]
-end ctx
+end # ctx
CTX: ctx = cons ctx []
parse InputP: ctx::start( CTX ) [stdin]
diff --git a/test/counting1.lm b/test/counting1.lm
index 9f9ca974..ef35603e 100644
--- a/test/counting1.lm
+++ b/test/counting1.lm
@@ -88,7 +88,7 @@ context counting
}
}
}
-end counting
+end # counting
cons Counting: counting[]
parse counting::start(Counting)[ stdin ]
diff --git a/test/counting3.lm b/test/counting3.lm
index b40a0952..a8b77863 100644
--- a/test/counting3.lm
+++ b/test/counting3.lm
@@ -90,7 +90,7 @@ context counting
print( '*** SUCCESS ***\n' )
}
-end counting
+end # counting
cons Counting: counting[]
parse counting::start(Counting)[ stdin ]
diff --git a/test/counting4.lm b/test/counting4.lm
index 868dc73b..74e733b9 100644
--- a/test/counting4.lm
+++ b/test/counting4.lm
@@ -85,7 +85,7 @@ context counting
}
print( '*** SUCCESS ***\n' )
}
-end counting
+end # counting
cons Counting: counting[]
parse counting::start(Counting)[stdin]
diff --git a/test/generate1.lm b/test/generate1.lm
index 81f82b6e..99890ba0 100644
--- a/test/generate1.lm
+++ b/test/generate1.lm
@@ -682,7 +682,7 @@ context generate
def keyword_item
[identifier '=' expression]
-end generate
+end # generate
int print_stmts( S: generate::start )
{
diff --git a/test/generate2.lm b/test/generate2.lm
index 137b678e..b9efff91 100644
--- a/test/generate2.lm
+++ b/test/generate2.lm
@@ -188,7 +188,7 @@ context generate
def start
[item*]
-end generate
+end # generate
cons Generate: generate[]
diff --git a/test/heredoc.lm b/test/heredoc.lm
index 57b42b20..df509075 100644
--- a/test/heredoc.lm
+++ b/test/heredoc.lm
@@ -40,7 +40,7 @@ context heredoc
def start
[here_name here_data here_close id nl]
-end heredoc
+end # heredoc
cons HereDoc: heredoc[]
diff --git a/test/ignore4.lm b/test/ignore4.lm
index 9d2b7540..b26d629e 100644
--- a/test/ignore4.lm
+++ b/test/ignore4.lm
@@ -16,7 +16,7 @@ namespace hash
['define' id number '\n']
| ['include' string '\n']
-end hash
+end # hash
namespace lang
@@ -38,7 +38,7 @@ namespace lang
def start
[statement*]
-end lang
+end # lang
parse Input: lang::start[ stdin ]
diff --git a/test/include1.lm b/test/include1.lm
index 03a3b046..bca9dbfe 100644
--- a/test/include1.lm
+++ b/test/include1.lm
@@ -20,7 +20,7 @@ namespace string
return $DL
}
-end string
+end # string
namespace hash
@@ -38,7 +38,7 @@ namespace hash
['#' 'define' Id: id number '\n']
| ['#' 'include' Inc: string::string '\n']
-end hash
+end # hash
token rest_of_line /[^\n]* '\n'/
@@ -85,7 +85,7 @@ namespace lang
def start
[statement*]
-end lang
+end # lang
parse Input: lang::start[ stdin ]
diff --git a/test/lookup1.lm b/test/lookup1.lm
index afdfda4d..78aaa853 100644
--- a/test/lookup1.lm
+++ b/test/lookup1.lm
@@ -2138,7 +2138,7 @@ context lookup
print( '\n' )
}
-end lookup
+end # lookup
#
# Global data declarations
diff --git a/test/maxlen.lm b/test/maxlen.lm
index b7f8c250..e4a619dc 100644
--- a/test/maxlen.lm
+++ b/test/maxlen.lm
@@ -42,7 +42,7 @@ context maxlen
def start
[restricted_list id*]
-end maxlen
+end # maxlen
cons MaxLen: maxlen[]
MaxLen.allow = 3
diff --git a/test/rubyhere.lm b/test/rubyhere.lm
index 263091d5..7a23eedb 100644
--- a/test/rubyhere.lm
+++ b/test/rubyhere.lm
@@ -85,7 +85,7 @@ context rubyhere
def start
[item*]
-end rubyhere
+end # rubyhere
cons RubyHere: rubyhere[]
diff --git a/test/superid.lm b/test/superid.lm
index 0e032c5c..00f05a47 100644
--- a/test/superid.lm
+++ b/test/superid.lm
@@ -55,7 +55,7 @@ context si
match lhs [Item2:item2 ';\n']
print( Item2.msg )
}
-end si
+end # si
cons SuperId: si[]
parse S: si::start(SuperId)[stdin]
diff --git a/test/tags1.lm b/test/tags1.lm
index 4c5f4f87..ffa3138e 100644
--- a/test/tags1.lm
+++ b/test/tags1.lm
@@ -79,7 +79,7 @@ context tags
print_xml( lhs )
print( 'failed\n' )
}
-end tags
+end # tags
cons Tags: tags[]
Tags.TS = cons tags::tag_stack ["sentinal"]
diff --git a/test/tags3.lm b/test/tags3.lm
index 0e05a90b..e98406e9 100644
--- a/test/tags3.lm
+++ b/test/tags3.lm
@@ -295,7 +295,7 @@ context tags
# }
# }
# }
-end tags
+end # tags
cons Tags: tags[]
Tags.TagStack = construct tags::tag_stack []
diff --git a/test/tags4.lm b/test/tags4.lm
index 53b3c868..c712ab08 100644
--- a/test/tags4.lm
+++ b/test/tags4.lm
@@ -259,7 +259,7 @@ context tags
{
return true
}
-end tags
+end # tags
# Finds unclosed tags and puts the content after the tag. Afterwards
# all unclosed tags will be empty 'inside'.
diff --git a/test/translate2.lm b/test/translate2.lm
index 57d0ef19..96cef52b 100644
--- a/test/translate2.lm
+++ b/test/translate2.lm
@@ -44,7 +44,7 @@ context ctx
[A item* '!']
| [B item* ';\n']
-end ctx
+end # ctx
CTX: ctx = cons ctx []
parse InputP: ctx::start( CTX ) [ stdin ]
diff --git a/test/undofrag1.lm b/test/undofrag1.lm
index 73b41e45..6c14047d 100644
--- a/test/undofrag1.lm
+++ b/test/undofrag1.lm
@@ -41,7 +41,7 @@ context ctx
[A item* '!']
| [B item* ';\n']
-end ctx
+end # ctx
CTX: ctx = cons ctx []
diff --git a/test/undofrag2.lm b/test/undofrag2.lm
index 66641af0..5a5b4580 100644
--- a/test/undofrag2.lm
+++ b/test/undofrag2.lm
@@ -35,7 +35,7 @@ context undo
[A1 item* '^']
| [A2 item* ';' '\n']
-end undo
+end # undo
cons Undo: undo[]
Undo.Out = construct parser<undo::out> []
diff --git a/test/undofrag3.lm b/test/undofrag3.lm
index baef8f07..37b1554d 100644
--- a/test/undofrag3.lm
+++ b/test/undofrag3.lm
@@ -40,7 +40,7 @@ context undo
[A1 item* F '.' '^']
| [A2 item* F '.' ';' '\n']
-end undo
+end # undo
cons Undo: undo[]
Undo.Out = construct parser<undo::out> []