Ignore:
Timestamp:
Aug 15, 2016, 4:13:38 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:
b1848a0
Parents:
797347f
Message:

more refactoring of parser code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.cc

    r797347f re82aa9df  
    1010// Created On       : Sat May 16 13:26:29 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Aug 13 18:55:35 2016
    13 // Update Count     : 98
     12// Last Modified On : Mon Aug 15 14:49:06 2016
     13// Update Count     : 99
    1414//
    1515
     
    5252}
    5353
    54 ParseNode &ParseNode::operator,( ParseNode &p ) {
    55         set_last( &p );
    56         return *this;
    57 }
    58 
    59 ParseNode *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 
    6654// Local Variables: //
    6755// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.