summaryrefslogtreecommitdiff
path: root/lisp.y
diff options
context:
space:
mode:
Diffstat (limited to 'lisp.y')
-rw-r--r--lisp.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp.y b/lisp.y
index a15b451..dd6eddf 100644
--- a/lisp.y
+++ b/lisp.y
@@ -19,7 +19,7 @@ static int is_integer(double x) {
value *val;
}
%token <dval> NUMBER
-%token <strval> STRING
+%token <strval> STRING SYMBOL
%token <ival> LPAREN RPAREN DOT WHITESPACE
%token <ival> PLUS MINUS MULT DIV
@@ -59,6 +59,7 @@ atom: NUMBER
}
}
| STRING { $$ = make_string($1); };
+ | SYMBOL { $$ = make_symbol($1); };
%%
int yyerror(const char *s) {