summaryrefslogtreecommitdiff
path: root/lexer.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-24 21:42:35 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-24 21:42:35 +0000
commit5a5136ef9f981a603ca2e933e47cfd3a178be7cc (patch)
treefa086c71deaa2b82ad1644bb66fe69181ed1804b /lexer.c
parentfbbd0b34314d58cc4d210e5ff07c2726fdadd659 (diff)
Don't open symbols when lexing
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 38dc0a2..ce96a0d 100644
--- a/lexer.c
+++ b/lexer.c
@@ -180,7 +180,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, 0);
+ stmt->toks[stmt->ntoks].name = runestrdup(name);
}else if(isalpharune(peek)){
Rune buf[64];
Rune *p = buf;
@@ -191,7 +191,7 @@ get_digits:
*p = 0;
ungetrune(input);
stmt->toks[stmt->ntoks].tag = NameTag;
- stmt->toks[stmt->ntoks].symbol = getsym(buf, 0);
+ stmt->toks[stmt->ntoks].name = runestrdup(buf);
}else if(runestrchr(L"⎕⍞", peek)){
/* quad names */
Rune buf[64];