Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.cc

    re82aa9df r1d4580a  
    1010// Created On       : Sat May 16 13:26:29 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug 15 14:49:06 2016
    13 // Update Count     : 99
     12// Last Modified On : Sat Aug 13 18:55:35 2016
     13// Update Count     : 98
    1414//
    1515
     
    5252}
    5353
     54ParseNode &ParseNode::operator,( ParseNode &p ) {
     55        set_last( &p );
     56        return *this;
     57}
     58
     59ParseNode *mkList( ParseNode &pn ) {
     60        // it just relies on `operator,' to take care of the "arguments" and provides a nice interface to an awful-looking
     61        // address-of, rendering, for example (StatementNode *)(&(*$5 + *$7)) into (StatementNode *)mkList(($5, $7))
     62        // (although "nice" is probably not the word)
     63        return &pn;
     64}
     65
    5466// Local Variables: //
    5567// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.