From 866d3d03c16c7edd1930945c95fa13688171a7e7 Mon Sep 17 00:00:00 2001 From: Filleo Date: Mon, 15 Apr 2024 22:04:21 +0200 Subject: [PATCH] forgor one file --- src/lex/lexer.l | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/lex/lexer.l b/src/lex/lexer.l index f69347b..05ec44c 100644 --- a/src/lex/lexer.l +++ b/src/lex/lexer.l @@ -4,9 +4,10 @@ int yyLineNumber = 1; int yylex(); + + %} -/*543fgrsdffsd*/ %% "\n" yyLineNumber++; @@ -71,9 +72,22 @@ "." return('.'); +"import" return(KeyImport); +"silent" return(KeySilent); +"box" return(KeyBox); +"#" return('#'); +"typeof" return(FunTypeof); +"sizeof" return(FunSizeof); +"filename" return(FunFilename); +"funname" return(FunFunname); +"lineno" return(FunLineno); +"extsupport" return(FunExtsupport); + [a-zA-Z_]+ { yylval.string = strdup(yytext); return(Ident); }; [0-9]+ { yylval.num = atoi(yytext); return(ValInt); }; +\"([^\"\n])*\" {yylval.string = strdup(yytext); return(ValStr);}; +\"\"\"([^\"\n]|\\\n)*\"\"\" {yylval.string = strdup(yytext); return(ValMultistr);}; .; %%