blob: f0ed72fd1c8fc67b62f2dde80efcb3668a1a8c0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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]
Constructed: four_ids = construct four_ids "a b c d"
print_xml( Constructed )
|