Ignore:
Timestamp:
Aug 29, 2016, 5:39:26 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
28307be
Parents:
b542bfb
Message:

more refactoring of parser code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.h

    rb542bfb r8f6f47d7  
    1010// Created On       : Sat May 16 15:18:36 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Aug 28 22:39:00 2016
    13 // Update Count     : 85
     12// Last Modified On : Mon Aug 29 15:54:00 2016
     13// Update Count     : 106
    1414//
    1515
     
    7979        };
    8080
    81         struct Tuple_t {
    82                 DeclarationNode * members;
    83         };
     81        // struct Tuple_t {
     82        //      DeclarationNode * members;
     83        // };
    8484 
    85         struct Typeof_t {
    86                 ExpressionNode * expr;
    87         };
     85        // struct Typeof_t {
     86        //      ExpressionNode * expr;
     87        // };
    8888
    89         struct Builtin_t {
    90                 DeclarationNode::BuiltinType type;
    91         };
     89        // struct Builtin_t {
     90        //      DeclarationNode::BuiltinType type;
     91        // };
    9292
    9393        struct Attr_t {
     
    102102        DeclarationNode * forall;
    103103
    104         union {
    105                 Basic_t * basic;
    106                 Aggregate_t * aggregate;
    107                 AggInst_t * aggInst;
    108                 Array_t * array;
    109                 Enumeration_t * enumeration;
    110                 Function_t * function;
    111                 Symbolic_t * symbolic;
    112                 Variable_t * variable;
    113                 Tuple_t * tuple;
    114                 Typeof_t * typeexpr;
    115                 Attr_t * attr;
    116                 Builtin_t * builtin;
    117         };
     104                Basic_t basic;
     105                Aggregate_t aggregate;
     106                AggInst_t aggInst;
     107                Array_t array;
     108                Enumeration_t enumeration;
     109                Function_t function;
     110                Symbolic_t symbolic;
     111                Variable_t variable;
     112                DeclarationNode * tuple;
     113                ExpressionNode * typeexpr;
     114                Attr_t attr;
     115                // DeclarationNode::BuiltinType builtin;
    118116
    119117        TypeData( Kind k = Unknown );
Note: See TracChangeset for help on using the changeset viewer.