diff options
author | Adrian Thurston <thurston@complang.org> | 2013-04-13 10:44:45 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-04-13 10:44:45 -0400 |
commit | f34149a3990b06f647fcba9664471dfa6957a844 (patch) | |
tree | 8c72994004ffd3e79eeb42e51586aaa386c0f590 /test/matchex.lm | |
parent | e0cc080f94de6764b2eae8ef3815882316ebb922 (diff) | |
download | colm-f34149a3990b06f647fcba9664471dfa6957a844.tar.gz |
updated tests for parent commit (parse returns tree)
Diffstat (limited to 'test/matchex.lm')
-rw-r--r-- | test/matchex.lm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/matchex.lm b/test/matchex.lm index 9542f809..7bdacd30 100644 --- a/test/matchex.lm +++ b/test/matchex.lm @@ -24,10 +24,10 @@ def item parse Tag: tag[ stdin ] # Style: List of literal text and types. -match Tag.tree ["<person name=" Val1:id attr*">" item* "</person>"] +match Tag ["<person name=" Val1:id attr*">" item* "</person>"] # Style: Literal text with embedded lists of types. -match Tag.tree "<person name=[Val2:id attr*]>[item*]</person>" +match Tag "<person name=[Val2:id attr*]>[item*]</person>" print( ^Val1 '\n' ) print( ^Val2 '\n' ) |