Changeset f673c13c


Ignore:
Timestamp:
Jul 25, 2019, 9:34:18 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
033ff37
Parents:
a92a4fe
Message:

add gcc auto_type to parsing side

Location:
src/Parser
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    ra92a4fe rf673c13c  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Feb  1 16:49:17 2019
    13 // Update Count     : 1113
     12// Last Modified On : Thu Jul 25 17:13:06 2019
     13// Update Count     : 1115
    1414//
    1515
     
    4949const char * DeclarationNode::aggregateNames[] = { "struct", "union", "trait", "coroutine", "monitor", "thread", "NoAggregateNames" };
    5050const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" };
    51 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "zero_t", "one_t", "NoBuiltinTypeNames" };
     51const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "__auto_type", "zero_t", "one_t", "NoBuiltinTypeNames" };
    5252
    5353UniqueName DeclarationNode::anonymous( "__anonymous" );
  • src/Parser/ParseNode.h

    ra92a4fe rf673c13c  
    1010// Created On       : Sat May 16 13:28:16 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 15 14:22:39 2019
    13 // Update Count     : 874
     12// Last Modified On : Thu Jul 25 15:49:51 2019
     13// Update Count     : 875
    1414//
    1515
     
    221221        enum TypeClass { Otype, Dtype, Ftype, Ttype, NoTypeClass };
    222222        static const char * typeClassNames[];
    223         enum BuiltinType { Valist, Zero, One, NoBuiltinType };
     223        enum BuiltinType { Valist, AutoType, Zero, One, NoBuiltinType };
    224224        static const char * builtinTypeNames[];
    225225
  • src/Parser/lex.ll

    ra92a4fe rf673c13c  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Wed May 15 21:25:27 2019
    13  * Update Count     : 708
     12 * Last Modified On : Thu Jul 25 15:46:05 2019
     13 * Update Count     : 715
    1414 */
    1515
     
    218218__attribute__   { KEYWORD_RETURN(ATTRIBUTE); }                  // GCC
    219219auto                    { KEYWORD_RETURN(AUTO); }
     220__auto_type             { KEYWORD_RETURN(AUTO_TYPE); }
    220221basetypeof              { KEYWORD_RETURN(BASETYPEOF); }                 // CFA
    221222_Bool                   { KEYWORD_RETURN(BOOL); }                               // C99
     
    292293__restrict__    { KEYWORD_RETURN(RESTRICT); }                   // GCC
    293294return                  { KEYWORD_RETURN(RETURN); }
     295        /* resume                       { KEYWORD_RETURN(RESUME); }                             // CFA */
    294296short                   { KEYWORD_RETURN(SHORT); }
    295297signed                  { KEYWORD_RETURN(SIGNED); }
     
    300302_Static_assert  { KEYWORD_RETURN(STATICASSERT); }               // C11
    301303struct                  { KEYWORD_RETURN(STRUCT); }
     304        /* suspend                      { KEYWORD_RETURN(SUSPEND); }                    // CFA */
    302305switch                  { KEYWORD_RETURN(SWITCH); }
    303306thread                  { KEYWORD_RETURN(THREAD); }                             // C11
  • src/Parser/parser.yy

    ra92a4fe rf673c13c  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jul 14 07:54:30 2019
    13 // Update Count     : 4355
     12// Last Modified On : Thu Jul 25 15:49:52 2019
     13// Update Count     : 4356
    1414//
    1515
     
    272272%token ZERO_T ONE_T                                                                             // CFA
    273273%token VALIST                                                                                   // GCC
     274%token AUTO_TYPE                                                                                // GCC
    274275%token TYPEOF BASETYPEOF LABEL                                                  // GCC
    275276%token ENUM STRUCT UNION
     
    18711872        | VALIST                                                                                        // GCC, __builtin_va_list
    18721873                { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); }
     1874        | AUTO_TYPE
     1875                { $$ = DeclarationNode::newBuiltinType( DeclarationNode::AutoType ); }
    18731876        ;
    18741877
Note: See TracChangeset for help on using the changeset viewer.