diff --git a/lime.bootstrap b/lime.bootstrap index 5e8bdbc..bdac656 100644 --- a/lime.bootstrap +++ b/lime.bootstrap @@ -21,7 +21,7 @@ action : $$ = new lime_action($1, NULL); action lambda : $$ = new lime_action($1, $2); sym : $$ = new lime_glyph($1, NULL); sym lambda : $$ = new lime_glyph($1, $2); -lit : $$ = new lime_glyph($1, NULL); +str : $$ = new lime_glyph(substr($1, 1, -1), NULL); to slot : $$ = new lime_rhs(); rhs slot : $$->add($2); diff --git a/lime_scan_tokens b/lime_scan_tokens index b3d8296..74c69e7 100755 Binary files a/lime_scan_tokens and b/lime_scan_tokens differ diff --git a/lime_scan_tokens.l b/lime_scan_tokens.l index e2114c5..9d96c02 100644 --- a/lime_scan_tokens.l +++ b/lime_scan_tokens.l @@ -59,7 +59,8 @@ BLOCKCMT "/*"({CC}|{CX})*{CT} {STOP} out("stop", "."); {SYM} tok("sym"); -{LIT} tok("lit"); +\"{DCHAR}*\" tok("str"); +'{SCHAR}*' tok("str"); {BLOCKCMT} {} "/"{WORD}+ | "/$" out("lambda", yytext+1);