Changeset b7b08c in git for Singular/scanner.l


Ignore:
Timestamp:
Oct 14, 1999, 4:27:35 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
548777d246af408b77296a71c16c980b2cef5b35
Parents:
e960943ba1dcfcb333014a2aee474750e8fafe10
Message:
* us short exponent vectors in divisbility tests
* AllocSizeOf
* garbage collection
* scanner/gmp: allow .0 and 1. input of reals


git-svn-id: file:///usr/local/Singular/svn/trunk@3711 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/scanner.l

    re960943 rb7b08c  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 /* $Id: scanner.l,v 1.21 1999-07-20 12:29:50 Singular Exp $ */
     5/* $Id: scanner.l,v 1.22 1999-10-14 14:27:29 obachman Exp $ */
    66#include <stdio.h>
    77#include <string.h>
     
    7373monom          {letter}+{digit}*
    7474rgvars         ({digit}+[/])*{digit}+{monom}+
    75 realnum        {digit}+"."{digit}+("e"[+-]{digit}+)?
     75realnum        {digit}*"."{digit}+("e"[+-]{digit}+)?
    7676name           ({letter}({letter}*{digit}*_*)*|_)
    7777parname        #
     
    267267                           return RINGVAR;
    268268                         }
    269 \$                       {
     269\$                        {
    270270                           m2_end(-1);
    271271                         }
     
    286286                           return RINGVAR;
    287287                         }
    288 
     288[0-9]+\."e"[+-][0-9]+    {
     289                           lvalp->name = (char *)yytext;
     290                           return RINGVAR;
     291                         }
     292[0-9]+\./[^\.]           {
     293                           lvalp->name = (char *)yytext;
     294                           return RINGVAR;
     295                         }
     296       
    289297({parname}|{name})       {
    290298                           /* {name} */
Note: See TracChangeset for help on using the changeset viewer.