summaryrefslogtreecommitdiff
path: root/test/translate2.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-12-18 20:56:10 -0500
committerAdrian Thurston <thurston@complang.org>2012-12-18 20:56:10 -0500
commit82466231c6401bf490726f8a469b7139c6a37242 (patch)
tree0f5dc8478a0fd0ab7c651c12c5f8d02a4302821d /test/translate2.lm
parent5bb34e270b42ab19d5839a551fae0f42ea688f6b (diff)
downloadcolm-82466231c6401bf490726f8a469b7139c6a37242.tar.gz
updated test for lex scope syntax
Diffstat (limited to 'test/translate2.lm')
-rw-r--r--test/translate2.lm7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/translate2.lm b/test/translate2.lm
index bb0d88e8..7d746e28 100644
--- a/test/translate2.lm
+++ b/test/translate2.lm
@@ -1,9 +1,8 @@
lex
-{
ignore /space+/
literal '#', '{', '}'
token id2 /[a-zA-Z_]+/
-}
+end
def item2
[id2]
@@ -14,9 +13,7 @@ def start2
context ctx
{
-
lex
- {
ignore /space+/
literal '*', '(', ')', '!', ';\n'
token id /[a-zA-Z_0-9]+/
@@ -28,7 +25,7 @@ context ctx
input.push( make_token( typeid<id> "dot" ) )
input.push( make_token( typeid<id> "dot" ) )
}
- }
+ end
def item
[id]