aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
blob: 85dd4450be52451ec8045df7538ec0aa55bc4eed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <lyn/lyn.h>
#include <lyn/debug.h>

int main(int argc, char *argv[])
{
	if (argc != 2) {
		error("wrong number of arguments (should be just one for a file)");
		return -1;
	}

	struct lyn lyn = lyn_create();
	int ret = lyn_eval_file(&lyn, argv[1]);
	lyn_destroy(&lyn);

	return ret;
}