From 820252a5e324505481e0da937658cb6946fc279a Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Wed, 16 Oct 2019 21:21:22 -0400 Subject: Fix lex rules for input/output --- pc.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pc.l b/pc.l index d55e54e..f7528c0 100644 --- a/pc.l +++ b/pc.l @@ -35,7 +35,7 @@ id [A-Za-z][A-Za-z0-9_]* return PROG; } -output { +"output" { node *tmp; tmp = scope_insert(cur_scope, strdup("write")); tmp->func_info = malloc(sizeof(struct fi)); @@ -53,7 +53,7 @@ output { return IO; } -input { +"input" { node *tmp; tmp = scope_insert(cur_scope, strdup("read")); tmp->func_info = malloc(sizeof(struct fi)); -- cgit v1.1