diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-16 21:21:22 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-16 21:21:22 -0400 |
commit | 820252a5e324505481e0da937658cb6946fc279a (patch) | |
tree | b43a2e76e0bb0bd370d3501c1b3f2ee04c2e1813 | |
parent | c9afa15e98e01882ed35acf5e5c858e452aafbd7 (diff) |
Fix lex rules for input/output
-rw-r--r-- | pc.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |