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

#include <parse.h>
#include <term.h>
#include <reducer.h>

int main(void)
{
	struct term *term = parse("([[((0 1) [(1 0)])]] [0])");
	print_term(term);
	printf("\nReduced:\n");
	struct term *reduced = reduce(term);
	print_term(reduced);
	printf("\n");
	free_term(term);
	return 0;
}