X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=codea%2Fscanner.lex;h=92f6df7a82a53fcd24edd60ae6b80e54f8073f58;hb=79bf606e8b7d140aa1468154bb747636bd75eb00;hp=c104d0fc7d822d8e45f03841a7edbc8eef882d30;hpb=73e86dfddc6c4375afc1b73cf9b47f13f73a1973;p=uebersetzerbau-ss10.git diff --git a/codea/scanner.lex b/codea/scanner.lex index c104d0f..92f6df7 100644 --- a/codea/scanner.lex +++ b/codea/scanner.lex @@ -42,8 +42,8 @@ this return(THIS); {IDENTIFIER} return(IDENT); @{ @IDENT.name@ = strdup(yytext); @} -{NUMBER_DEC} return(NUM); -{NUMBER_HEX} return(NUM); +{NUMBER_DEC} return(NUM); @{ @NUM.val@ = strtol(yytext, (char **)NULL, 10); @} +{NUMBER_HEX} return(NUM); @{ @NUM.val@ = strtol(yytext, (char **)NULL, 16); @} \:= return(ASSIGN); \; return(';');