summaryrefslogtreecommitdiff
path: root/grammar/go/Makefile
blob: 8f5d844759fc1febf19354934fa66aca36e3ea04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
COLM = ../../colm/colm
RAGEL = ../../ragel/ragel

all: go

go: go.lm parsego.lm utf8.lm $(COLM)
	$(COLM) -o go parsego.lm

utf8.lm: Makefile utf8pat.rb UnicodeData.txt
	echo 'rl unicode_letter /' >utf8.lm
	ruby utf8pat.rb 'L[ultmo]' 1 UnicodeData.txt >> utf8.lm
	echo '/' >>utf8.lm
	echo 'rl unicode_digit /' >>utf8.lm
	ruby utf8pat.rb 'Nd' 1 UnicodeData.txt >> utf8.lm
	echo '/' >>utf8.lm