diff options
author | Adrian Thurston <thurston@complang.org> | 2010-01-20 14:57:06 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2010-01-20 14:57:06 +0000 |
commit | c1a6b3da29da2f661530cae1461682fcc7e91b6e (patch) | |
tree | 489fb5b2799596ad58aea85618809c965f9b0877 /test/construct1.lm | |
parent | 84bbf8a2d3f8cba0b0be625e99864620a5858984 (diff) | |
download | colm-c1a6b3da29da2f661530cae1461682fcc7e91b6e.tar.gz |
Disabled constructing of ignore tokens. Needs to be modified to use the new
method with the bit in flags to indicate chains of pre and post ignores are
present.
Diffstat (limited to 'test/construct1.lm')
-rw-r--r-- | test/construct1.lm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/construct1.lm b/test/construct1.lm new file mode 100644 index 00000000..f16cd48a --- /dev/null +++ b/test/construct1.lm @@ -0,0 +1,16 @@ +rl ident_pattern /[a-zA-Z_][a-zA-Z_0-9]*/ +rl number_pattern /[0-9]+/ + +lex start +{ + ignore /[ \t\n]+/ + token id /ident_pattern/ + token number /number_pattern/ +} + +def four_ids + [id id id id] + +four_ids Constructed = construct four_ids "a b c d" +print_xml( Constructed ) + |