git » unicorn-sparkle-basic.git » commit 45e08cb

add STRING

author Alan Dipert
2024-01-05 04:34:37 UTC
committer Alan Dipert
2024-01-05 04:34:37 UTC
parent 6465f35884a4f28803354df5b53bfa4f1f700747

add STRING

bbasic.y +2 -0

diff --git a/bbasic.y b/bbasic.y
index 24d8a17..07e8e48 100644
--- a/bbasic.y
+++ b/bbasic.y
@@ -17,6 +17,7 @@ void yyerror(const char *s) {
 
 %token <num> NUMBER
 %token <str> IDENTIFIER
+%token <str> STRING
 %token EOL PRINT IF THEN GOTO EQUALS
 
 %define parse.error verbose
@@ -40,6 +41,7 @@ statement:
 
 expression:
     IDENTIFIER
+    | STRING
     | NUMBER
     | expression '+' expression
     | expression '-' expression