summaryrefslogtreecommitdiff
path: root/hence.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-08-06 01:30:09 +1200
committerDavid Phillips <david@sighup.nz>2018-08-06 01:30:09 +1200
commite4e292fce970257a7ee09f547cb905794af1a8d4 (patch)
treeb3060d84843b1bb56dab7c6013d226d5d37ae653 /hence.c
parent948160bed032bbfe174fb7b8e25a2b772e6c3369 (diff)
downloadhence-e4e292fce970257a7ee09f547cb905794af1a8d4.tar.xz
lex: add filename to error
Brings lexing error message format more into line with parser
Diffstat (limited to 'hence.c')
-rw-r--r--hence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hence.c b/hence.c
index b9f69bd..bc4b702 100644
--- a/hence.c
+++ b/hence.c
@@ -23,7 +23,7 @@ int main(int argc, char **argv) {
return 1;
}
- struct token *tok = lex_file(fd);
+ struct token *tok = lex_file(argv[1], fd);
int p = parse(argv[1], fd, tok);
// gate_set_input("a", LOGIC_LOW);