Changeset b87a5ed for translator/Parser/ParseNode.cc
- Timestamp:
- May 16, 2015, 3:36:19 PM (9 years ago)
- 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:
- a32b204
- Parents:
- b8508a2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Parser/ParseNode.cc
rb8508a2 rb87a5ed 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // ParseNode.cc -- 8 // 9 // Author : Rodolfo G. Esteves 10 // Created On : Sat May 16 13:26:29 2015 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat May 16 13:27:51 2015 13 // Update Count : 2 14 // 15 1 16 #include "ParseNode.h" 2 17 using namespace std; … … 74 89 75 90 ParseNode *mkList( ParseNode &pn ) { 76 /* it just relies on `operator,' to take care of the "arguments" and provides 77 a nice interface to an awful-looking address-of, rendering, for example 78 (StatementNode *)(&(*$5 + *$7)) into (StatementNode *)mkList(($5, $7)) 79 (although "nice" is probably not the word) 80 */ 91 // it just relies on `operator,' to take care of the "arguments" and provides a nice interface to an awful-looking 92 // address-of, rendering, for example (StatementNode *)(&(*$5 + *$7)) into (StatementNode *)mkList(($5, $7)) 93 // (although "nice" is probably not the word) 81 94 return &pn; 82 95 } 83 96 84 85 97 // Local Variables: // 86 // mode: C++ // 87 // compile-command: "gmake" // 98 // tab-width: 4 // 99 // mode: c++ // 100 // compile-command: "make install" // 88 101 // End: //
Note: See TracChangeset
for help on using the changeset viewer.