Ignore:
Timestamp:
Aug 18, 2016, 5:00:28 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, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5b7a60c8
Parents:
1cb2282
Message:

more refactoring of parser code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.cc

    r1cb2282 r99cad3aa  
    1010// Created On       : Sat May 16 13:26:29 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Aug 16 21:31:47 2016
    13 // Update Count     : 125
     12// Last Modified On : Wed Aug 17 23:14:16 2016
     13// Update Count     : 126
    1414//
    1515
     
    1919int ParseNode::indent_by = 4;
    2020
    21 ParseNode::ParseNode() {};
    22 ParseNode::ParseNode( const string *name ) : name( *name ) { assert( false ); delete name; }
    23 ParseNode::ParseNode( const string &name ) : name( name ) { assert( false ); }
    24 
    25 ParseNode::~ParseNode() {
    26         delete next;
    27 };
    28 
    29 ParseNode *ParseNode::get_last() {
    30         ParseNode *current;
    31         for ( current = this; current->get_next() != 0; current = current->get_next() );
    32         return current;
    33 }
    34 
    35 ParseNode *ParseNode::set_last( ParseNode *newlast ) {
    36         if ( newlast != 0 ) get_last()->set_next( newlast );
    37         return this;
    38 }
    39 
    4021// Local Variables: //
    4122// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.