This commit is contained in:
anon
2024-07-05 19:32:43 +02:00
parent 73d6854af2
commit 811c06ca22
2 changed files with 7 additions and 5 deletions

View File

@ -102,7 +102,7 @@ fastcall{wsnl}+ { return FASTCALL; }
\[ { return '['; }
\] { return ']'; }
\+|\-|\*|\/|\%|\^ { return yytext[0]; }
\+|\-|\*|\/|\%|\^|\: { return yytext[0]; }
<IN_END>{
program { BEGIN INITIAL; return END_PROGRAM; }
@ -165,7 +165,8 @@ machine { BEGIN INITIAL; return END_MACHINE; }
}
}
{identifier} { yylval.strval = strdup(yytext); return IDENTIFIER; }
{identifier} { yylval.strval = strdup(yytext); return IDENTIFIER; }
{identifier}: { yylval.strval = strdup(yytext); return LABEL; }
. { yyerror(); }