aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
blob: 63ce86b30982d9473859f71afc020612423c74d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}