From 5bc170c54464a786136c1d7c0aefe732cd79dd14 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 1 Aug 2018 23:42:14 +1200 Subject: Rename simulator This project has had a name for a while now --- simulator.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 simulator.c (limited to 'simulator.c') diff --git a/simulator.c b/simulator.c deleted file mode 100644 index b9f69bd..0000000 --- a/simulator.c +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include - -//#include "gate.h" -//#include "logic.h" -#include "lex.h" -#include "parse.h" - -int main(int argc, char **argv) { - FILE *fd = NULL; - - if (argc != 2) { - fprintf(stderr, "Syntax: %s file.hence\n", argv[0]); - return 1; - } - -// gate_init(); - - fd = fopen(argv[1], "r"); - - if (!fd) { - perror("fopen"); - return 1; - } - - struct token *tok = lex_file(fd); - int p = parse(argv[1], fd, tok); - -// gate_set_input("a", LOGIC_LOW); -// gate_set_input("b", LOGIC_LOW); -// gate_update(); -// gate_dump(); - - return p; -} -- cgit v1.1