summaryrefslogtreecommitdiff
path: root/simulator.c
blob: 4f99c4fb4be4325af6bef7f67630b8a51666e0f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include <string.h>

//#include "gate.h"
//#include "logic.h"
#include "lexer.h"
#include "parser.h"

int main(int argc, char **argv) {
	(void)argc;
	(void)argv;

//	gate_init();

	struct token *tok = lex_file(stdin);
	int p = parse(tok);

//	gate_set_input("a", LOGIC_LOW);
//	gate_set_input("b", LOGIC_LOW);
//	gate_update();
//	gate_dump();

	return 0;
}