Ignore:
Timestamp:
Feb 11, 2019, 6:46:56 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
cdcddfe1
Parents:
0e66857
Message:

update constant parsing add _FloatNN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r0e66857 rba01b14  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Nov  8 18:08:23 2018
    13 // Update Count     : 4052
     12// Last Modified On : Fri Feb  1 16:26:47 2019
     13// Update Count     : 4061
    1414//
    1515
     
    264264%token BOOL COMPLEX IMAGINARY                                                   // C99
    265265%token INT128 FLOAT80 FLOAT128                                                  // GCC
     266%token _FLOAT16 _FLOAT32 _FLOAT32X _FLOAT64 _FLOAT64X _FLOAT128 // GCC
    266267%token ZERO_T ONE_T                                                                             // CFA
    267268%token VALIST                                                                                   // GCC
     
    17711772        | FLOAT
    17721773                { $$ = DeclarationNode::newBasicType( DeclarationNode::Float ); }
     1774        | DOUBLE
     1775                { $$ = DeclarationNode::newBasicType( DeclarationNode::Double ); }
    17731776        | FLOAT80
    17741777                { $$ = DeclarationNode::newBasicType( DeclarationNode::Float80 ); }
    17751778        | FLOAT128
    17761779                { $$ = DeclarationNode::newBasicType( DeclarationNode::Float128 ); }
    1777         | DOUBLE
    1778                 { $$ = DeclarationNode::newBasicType( DeclarationNode::Double ); }
     1780        | _FLOAT16
     1781                { $$ = DeclarationNode::newBasicType( DeclarationNode::_Float16 ); }
     1782        | _FLOAT32
     1783                { $$ = DeclarationNode::newBasicType( DeclarationNode::_Float32 ); }
     1784        | _FLOAT32X
     1785                { $$ = DeclarationNode::newBasicType( DeclarationNode::_Float32x ); }
     1786        | _FLOAT64
     1787                { $$ = DeclarationNode::newBasicType( DeclarationNode::_Float64 ); }
     1788        | _FLOAT64X
     1789                { $$ = DeclarationNode::newBasicType( DeclarationNode::_Float64x ); }
     1790        | _FLOAT128
     1791                { $$ = DeclarationNode::newBasicType( DeclarationNode::_Float128 ); }
    17791792        | COMPLEX                                                                                       // C99
    17801793                { $$ = DeclarationNode::newComplexType( DeclarationNode::Complex ); }
Note: See TracChangeset for help on using the changeset viewer.