diff options
author | Adrian Thurston <thurston@complang.org> | 2012-12-18 20:56:10 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-12-18 20:56:10 -0500 |
commit | 82466231c6401bf490726f8a469b7139c6a37242 (patch) | |
tree | 0f5dc8478a0fd0ab7c651c12c5f8d02a4302821d /test/translate2.lm | |
parent | 5bb34e270b42ab19d5839a551fae0f42ea688f6b (diff) | |
download | colm-82466231c6401bf490726f8a469b7139c6a37242.tar.gz |
updated test for lex scope syntax
Diffstat (limited to 'test/translate2.lm')
-rw-r--r-- | test/translate2.lm | 7 |
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] |