aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser.c4
-rw-r--r--src/parser.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c
index b79d1f0..6e6838a 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -114,6 +114,10 @@ parseexpr(struct ast *ast, struct lexemes toks)
toksidx++;
ast->kinds[i] = ASTNUMLIT;
break;
+ case LEXIDENT:
+ toksidx++;
+ ast->kinds[i] = ASTIDENT;
+ break;
case LEXLPAR:
ast->kinds[i] = ASTFN;
idx_t_ lhs = parseproto(ast, toks);
diff --git a/src/parser.h b/src/parser.h
index 96a0ed8..6780e24 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -28,6 +28,9 @@ enum {
/* Braced block, sublist[lhs…rhs] */
ASTBLK,
+ /* Identifier literal */
+ ASTIDENT,
+
/* Numeric literal */
ASTNUMLIT,