~technomancy/antifennel

ref: 619350b715fffa486a3757604375138688b9d302 antifennel/Makefile -rw-r--r-- 565 bytes View raw
619350b7Phil Hagelberg Fix bugs in assigning and returning multivals. 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