The unified diff between revisions [c2301346..] and [d9b0a732..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/lsc/lexer.l'

#
# old_revision [c2301346be8a3f197425575f91b4910582a22a62]
# new_revision [d9b0a732b453297cf427327bd78b4fc4258f15ee]
#
# patch "src/lsc/lexer.l"
#  from [d53fa70f337e95617b535a04f1a6bfa60b4326a2]
#    to [c84e522ab7268008c572c8d1670438471d7287e1]
#
============================================================
--- src/lsc/lexer.l	d53fa70f337e95617b535a04f1a6bfa60b4326a2
+++ src/lsc/lexer.l	c84e522ab7268008c572c8d1670438471d7287e1
@@ -105,6 +105,8 @@ return		return TOKRETURN;
 
 [0-9]+          yylval.Tinteger = atoi(yytext); return NUMBER;
 -[0-9]+         yylval.Tinteger = atoi(yytext); return NUMBER;
+0x[0-9]+        yylval.Tinteger = strtol(yytext+2, (char **)NULL, 16); return NUMBER;
+-0x[0-9]+       yylval.Tinteger = strtol(yytext+2, (char **)NULL, 16); return NUMBER;
 [0-9]+\.[0-9]+	yylval.Treal = atof(yytext); return REAL;
 -[0-9]+\.[0-9]+	yylval.Treal = atof(yytext); return REAL;
 [_a-zA-Z0-9]+	yylval.Tstring = strdup(yytext); return IDENTIFIER;