diff options
Diffstat (limited to 'grammar/go/Makefile')
-rw-r--r-- | grammar/go/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/grammar/go/Makefile b/grammar/go/Makefile new file mode 100644 index 00000000..f4a39bad --- /dev/null +++ b/grammar/go/Makefile @@ -0,0 +1,18 @@ +COLM = ../../colm/colm +RAGEL = ../../ragel/ragel + +all: go insert-semi + +go: go.lm parsego.lm utf8.lm $(COLM) + $(COLM) -o go parsego.lm + +insert-semi: insert-semi.lm + $(COLM) $< + +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 |