Changeset 59db689 for src/SynTree


Ignore:
Timestamp:
Jun 6, 2015, 11:38:58 PM (10 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, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
cd623a4
Parents:
a65d92e
Message:

constant types, first attempt

Location:
src/SynTree
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ArrayType.cc

    ra65d92e r59db689  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun  4 21:16:46 2015
    13 // Update Count     : 7
     12// Last Modified On : Sat Jun  6 14:11:48 2015
     13// Update Count     : 9
    1414//
    1515
     
    5050        } // if
    5151        if ( dimension ) {
     52                os << "with dimension of ";
    5253                dimension->print( os, indent );
    5354        } // if
  • src/SynTree/BasicType.cc

    ra65d92e r59db689  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 18 07:55:16 2015
    13 // Update Count     : 1
     12// Last Modified On : Sat Jun  6 11:52:43 2015
     13// Update Count     : 2
    1414//
    1515
  • src/SynTree/Constant.cc

    ra65d92e r59db689  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 18 08:13:25 2015
    13 // Update Count     : 1
     12// Last Modified On : Sat Jun  6 12:17:22 2015
     13// Update Count     : 2
    1414//
    1515
     
    2020#include "Type.h"
    2121
    22 Constant::Constant( Type *_type, std::string _value ) : type(_type), value(_value) {}
     22Constant::Constant( Type *type_, std::string value_ ) : type( type_ ), value( value_ ) {}
    2323
    2424Constant::~Constant() {}
  • src/SynTree/Expression.cc

    ra65d92e r59db689  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun  5 07:51:09 2015
    13 // Update Count     : 11
     12// Last Modified On : Sat Jun  6 14:13:39 2015
     13// Update Count     : 14
    1414//
    1515
     
    5050}
    5151
    52 void Expression::print(std::ostream &os, int indent) const {
     52void Expression::print( std::ostream &os, int indent ) const {
    5353        if ( env ) {
    5454                os << std::string( indent, ' ' ) << "with environment:" << std::endl;
     
    7272
    7373void ConstantExpr::print( std::ostream &os, int indent ) const {
    74         os << std::endl;
    75         os << std::string( indent, ' ' ) << "dimension of constant expression: " ;
     74        os << std::string( indent, ' ' ) << "constant expression: " ;
    7675        constant.print( os );
    7776        Expression::print( os, indent );
  • src/SynTree/Type.h

    ra65d92e r59db689  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 18 11:01:40 2015
    13 // Update Count     : 1
     12// Last Modified On : Sat Jun  6 14:12:14 2015
     13// Update Count     : 2
    1414//
    1515
     
    110110        }; 
    111111
    112         static const char *typeNames[];                 // string names for basic types, MUST MATCH with Kind
     112        static const char *typeNames[];                                         // string names for basic types, MUST MATCH with Kind
    113113
    114114        BasicType( const Type::Qualifiers &tq, Kind bt );
Note: See TracChangeset for help on using the changeset viewer.