summaryrefslogtreecommitdiff
path: root/lexer.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-24 00:40:00 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-24 00:40:00 +0000
commit63c5e49a32fb7bdb98c0d34f2d75ee2621ee4c68 (patch)
treec1fa0a6730b070d2e2bc454f6f665ab50e5f6b09 /lexer.c
parent464110afe0599efa5b876eb398769cdbf2a0c1df (diff)
Fix symbol lookup
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexer.c b/lexer.c
index 0515727..24d7e00 100644
--- a/lexer.c
+++ b/lexer.c
@@ -168,7 +168,7 @@ get_digits:
}else if(runestrchr(L"⍺⍵", peek)){
Rune name[2] = {peek, 0};
stmt->toks[stmt->ntoks].tag = NameTag;
- stmt->toks[stmt->ntoks].symbol = getsym(name);
+ stmt->toks[stmt->ntoks].symbol = getsym(name, 0);
}else if(isalpharune(peek)){
Rune buf[64];
Rune *p = buf;
@@ -179,7 +179,7 @@ get_digits:
*p = 0;
ungetrune(input);
stmt->toks[stmt->ntoks].tag = NameTag;
- stmt->toks[stmt->ntoks].symbol = getsym(buf);
+ stmt->toks[stmt->ntoks].symbol = getsym(buf, 0);
}else if(runestrchr(L"⎕⍞", peek)){
/* quad names */
Rune buf[64];