Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / frontend / commonlisp2transpilerstr.l
diff options
context:
space:
mode:
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/frontend/commonlisp2transpilerstr.l b/Year 2/Implementation of Programming Languages/Transpiler/frontend/commonlisp2transpilerstr.l
index d2bffba..58218ef 100644
--- a/Year 2/Implementation of Programming Languages/Transpiler/frontend/commonlisp2transpilerstr.l
+++ b/Year 2/Implementation of Programming Languages/Transpiler/frontend/commonlisp2transpilerstr.l
@@ -1,5 +1,5 @@
%{
-#include "../build/commonlisp2transpilerstr.tab.h"
+#include "commonlisp2transpilerstr.tab.h"
%}
DIGIT [0-9]
@@ -18,13 +18,12 @@ FUNCTION "+ "|"- "|"* "|\/|defun|defvar|if|=|>|>=|<|<=
{LEFTBRACKET} { return LBRACKET; }
{RIGHTBRACKET} { return RBRACKET; }
-/* {STR} { yylval = strdup(yytext); return STR; } */
+ /* {STR} { yylval = strdup(yytext); return STR; } */
{INTEGER} { yylval = strdup(yytext); return INTEGER; }
{FLOAT} { yylval = strdup(yytext); return FLOAT;}
{FUNCTION} { yylval = strdup(yytext); return FUNCTION; }
- /* flex catches the longest possibility, so if some variable name contains a known word (function, macro, etc.), this will prevent it from highlighting */
-[A-z!-'*-@]+|" "|\t { yylval = strdup(yytext); return NAME; }
+[A-z!-'*-@]+ { yylval = strdup(yytext); return NAME; }
%%