aboutsummaryrefslogtreecommitdiff
path: root/src/cmonkey.c
blob: 64e61d64bc8cb009830af46b7bba074a6d6de4ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "repl.h"

#include <stdio.h>

int
main(int argc, char *argv[])
{
	/* TODO: read from file, interpret and exit
	if (argc > 1) {
		FILE *in = fopen(argv[1], "r");
	}
	*/
	printf("Welcome to the CMonkey interpreter of the Monkey language!\n");
	printf("Enter any commands to begin\n");
	repl_start(stdin, stdout);
}