- implemented #b, #o, #x and #nR prefixes for binary, octal, hexadecimal, and
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 5 Apr 2000 19:31:33 +0000 (19:31 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 5 Apr 2000 19:31:33 +0000 (19:31 +0000)
  base-n integers

ginac/input_lexer.ll

index 04b71e832b2f17bd17b17090811d357607541ba5..5a3bfbdb22e1f2d62f98dd868d17270ffc8d35c6 100644 (file)
@@ -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;