LUA ?= rlwrap luajit \
	-e 'core = require "core"' \
	-e 'dump = require "dump"' \
	-e 'eval = require "eval"' \
	-e 'load = require "load"' \
	-e 'port = require "port"' \
	-e 'read = require "read"' \
	-e 'repl = require "repl"' \
	-e 'type = require "type"' \
	-e 'util = require "util"'

.PHONY: luarepl
luarepl:
	$(LUA) -i

.PHONY: lamrepl
lamrepl:
	$(LUA) -e 'require("repl").repl("> ")'

.PHONY: check
check:
	luacheck *.lua