Changeset 59c24b6


Ignore:
Timestamp:
Jul 5, 2016, 4:35:29 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
3a808fd
Parents:
9bb81bb
Message:

fix juxtaposed string concatenation in parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r9bb81bb r59c24b6  
    1010// Created On       : Sat May 16 13:17:07 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun 30 13:33:16 2016
    13 // Update Count     : 319
     12// Last Modified On : Tue Jul  5 13:41:55 2016
     13// Update Count     : 320
    1414//
    1515
     
    9494ConstantNode *ConstantNode::appendstr( const std::string *newValue ) {
    9595        assert( newValue != 0 );
     96
    9697        string value = expr->get_constant()->get_value();
    9798
    9899        // "abc" "def" "ghi" => "abcdefghi", remove new text from quotes and insert before last quote in old string.
    99100        value.insert( value.length() - 1, newValue->substr( 1, newValue->length() - 2 ) );
     101        expr->get_constant()->set_value( value );
    100102
    101103        delete newValue;                                                                        // allocated by lexer
Note: See TracChangeset for help on using the changeset viewer.