]> www.ginac.de Git - ginac.git/blobdiff - ginac/input_lexer.ll
- implemented #b, #o, #x and #nR prefixes for binary, octal, hexadecimal, and
[ginac.git] / ginac / input_lexer.ll
index 04b71e832b2f17bd17b17090811d357607541ba5..5a3bfbdb22e1f2d62f98dd868d17270ffc8d35c6 100644 (file)
@@ -111,6 +111,10 @@ Digits                     ginac_yylval = (long)Digits; return T_DIGITS;
 
                        /* numbers */
 {D}+                   |
 
                        /* 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;
 {D}+"."{D}*({E})?      |
 {D}*"."{D}+({E})?      |
 {D}+{E}                        ginac_yylval = numeric(yytext); return T_NUMBER;