From f2fae86fdf68eaf32111ae4ef9c1171c0e5c46a9 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 5 Apr 2000 19:31:33 +0000 Subject: [PATCH] - implemented #b, #o, #x and #nR prefixes for binary, octal, hexadecimal, and base-n integers --- ginac/input_lexer.ll | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ginac/input_lexer.ll b/ginac/input_lexer.ll index 04b71e83..5a3bfbdb 100644 --- a/ginac/input_lexer.ll +++ b/ginac/input_lexer.ll @@ -111,6 +111,10 @@ Digits ginac_yylval = (long)Digits; return T_DIGITS; /* numbers */ {D}+ | +"#"{D}+"R"{AN}+ | +"#b"([01])+ | +"#o"[0-7]+ | +"#x"[0-9a-fA-F]+ | {D}+"."{D}*({E})? | {D}*"."{D}+({E})? | {D}+{E} ginac_yylval = numeric(yytext); return T_NUMBER; -- 2.44.0