~technomancy/antifennel

ref: baabd1dc9b610c28f65328324d9377309fd43ed2 antifennel/Makefile -rw-r--r-- 563 bytes View raw
baabd1dcPhil Hagelberg Track tail calls and hack in early returns. a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PARSER_LUA=lang/reader.lua \
		lang/operator.lua \
		lang/id_generator.lua \
		lang/lua_ast.lua \
		lang/lexer.lua \
		lang/parser.lua

PARSER_FENNEL=lang/reader.fnl \
		lang/operator.fnl \
		lang/id_generator.fnl \
		lang/lua_ast.fnl \
		lang/lexer.fnl \
		lang/parser.fnl

test: all
	luajit antifennel.lua antifennel.lua > antifennel.fnl
	diff antifennel.fnl antifennel_expected.fnl

all: $(PARSER_FENNEL)

lang/%.fnl: lang/%.lua anticompiler.fnl
	luajit antifennel.lua $< > $@
	fnlfmt --fix $@

clean: ; rm -f lang/*.fnl antifennel.fnl

.PHONY: test all clean