summaryrefslogtreecommitdiff
path: root/test/construct2.lm
blob: f21699b7cc65a218d32e9909c3cc80ec170ab64e (plain)
1
2
3
4
5
6
7
8
9
10
11

lex start
{
	ignore /[ \t\n]+/
	token id /[a-z]+/
	literal ',', '.', '*', '(', ')'
}

def lang [id*]

print( construct lang "a b c", '\n' )