source: src/SynTree/Expression.cc@ 04cdd9b

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 04cdd9b was ac71a86, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

removed more memory leaks from the system

  • Property mode set to 100644
File size: 16.6 KB
RevLine 
[0dd3a2f]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//
[3be261a]7// Expression.cc --
[0dd3a2f]8//
9// Author : Richard C. Bilson
10// Created On : Mon May 18 07:44:20 2015
[e04ef3a]11// Last Modified By : Peter A. Buhr
[d9e2280]12// Last Modified On : Fri Aug 5 14:23:56 2016
13// Update Count : 49
[0dd3a2f]14//
15
[51b73452]16#include <iostream>
17#include <cassert>
18#include <list>
19#include <algorithm>
20
21#include <iterator>
22
23#include "Type.h"
[630a82a]24#include "Initializer.h"
[51b73452]25#include "Expression.h"
26#include "Declaration.h"
27#include "Statement.h"
28#include "TypeSubstitution.h"
[d3b7937]29#include "Common/utility.h"
[51b73452]30
31
32Expression::Expression( Expression *_aname ) : env( 0 ), argName( _aname ) {}
[0dd3a2f]33
[e04ef3a]34Expression::Expression( const Expression &other ) : env( maybeClone( other.env ) ), argName( maybeClone( other.get_argName() ) ), extension( other.extension ) {
[0dd3a2f]35 cloneAll( other.results, results );
36}
37
38Expression::~Expression() {
39 delete env;
[7f5566b]40 delete argName; // xxx -- there's a problem in cloning ConstantExpr I still don't know how to fix
[0dd3a2f]41 deleteAll( results );
42}
43
44void Expression::add_result( Type *t ) {
45 if ( TupleType *tuple = dynamic_cast< TupleType* >( t ) ) {
46 std::copy( tuple->get_types().begin(), tuple->get_types().end(), back_inserter( results ) );
47 } else {
48 results.push_back(t);
49 } // if
[51b73452]50}
51
[59db689]52void Expression::print( std::ostream &os, int indent ) const {
[0dd3a2f]53 if ( env ) {
[cf0941d]54 os << std::string( indent, ' ' ) << "with environment:" << std::endl;
[0dd3a2f]55 env->print( os, indent+2 );
56 } // if
[51b73452]57
[0dd3a2f]58 if ( argName ) {
[cf0941d]59 os << std::string( indent, ' ' ) << "with designator:";
[0dd3a2f]60 argName->print( os, indent+2 );
61 } // if
[e04ef3a]62
63 if ( extension ) {
64 os << std::string( indent, ' ' ) << "with extension:";
65 } // if
[51b73452]66}
67
[0dd3a2f]68ConstantExpr::ConstantExpr( Constant _c, Expression *_aname ) : Expression( _aname ), constant( _c ) {
69 add_result( constant.get_type()->clone() );
[51b73452]70}
71
[0dd3a2f]72ConstantExpr::ConstantExpr( const ConstantExpr &other) : Expression( other ), constant( other.constant ) {
73}
[51b73452]74
75ConstantExpr::~ConstantExpr() {}
76
[0dd3a2f]77void ConstantExpr::print( std::ostream &os, int indent ) const {
[60089f4]78 os << "constant expression " ;
[cf0941d]79 constant.print( os );
[0dd3a2f]80 Expression::print( os, indent );
[51b73452]81}
82
[0dd3a2f]83VariableExpr::VariableExpr( DeclarationWithType *_var, Expression *_aname ) : Expression( _aname ), var( _var ) {
[db4ecc5]84 assert( var );
85 assert( var->get_type() );
[0dd3a2f]86 add_result( var->get_type()->clone() );
87 for ( std::list< Type* >::iterator i = get_results().begin(); i != get_results().end(); ++i ) {
88 (*i)->set_isLvalue( true );
89 } // for
[51b73452]90}
91
[0dd3a2f]92VariableExpr::VariableExpr( const VariableExpr &other ) : Expression( other ), var( other.var ) {
[51b73452]93}
94
[0dd3a2f]95VariableExpr::~VariableExpr() {
96 // don't delete the declaration, since it points somewhere else in the tree
[51b73452]97}
98
[0dd3a2f]99void VariableExpr::print( std::ostream &os, int indent ) const {
[89231bc]100 os << "Variable Expression: ";
[51b73452]101
[0dd3a2f]102 Declaration *decl = get_var();
103 // if ( decl != 0) decl->print(os, indent + 2);
104 if ( decl != 0) decl->printShort(os, indent + 2);
105 os << std::endl;
106 Expression::print( os, indent );
[51b73452]107}
108
109SizeofExpr::SizeofExpr( Expression *expr_, Expression *_aname ) :
[0dd3a2f]110 Expression( _aname ), expr(expr_), type(0), isType(false) {
[bfebb6c5]111 add_result( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) );
[51b73452]112}
113
114SizeofExpr::SizeofExpr( Type *type_, Expression *_aname ) :
[0dd3a2f]115 Expression( _aname ), expr(0), type(type_), isType(true) {
[bfebb6c5]116 add_result( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) );
[51b73452]117}
118
[0dd3a2f]119SizeofExpr::SizeofExpr( const SizeofExpr &other ) :
120 Expression( other ), expr( maybeClone( other.expr ) ), type( maybeClone( other.type ) ), isType( other.isType ) {
[51b73452]121}
122
[0dd3a2f]123SizeofExpr::~SizeofExpr() {
124 delete expr;
125 delete type;
[51b73452]126}
127
128void SizeofExpr::print( std::ostream &os, int indent) const {
[89231bc]129 os << "Sizeof Expression on: ";
[51b73452]130
[47534159]131 if (isType)
132 type->print(os, indent + 2);
133 else
134 expr->print(os, indent + 2);
135
136 os << std::endl;
137 Expression::print( os, indent );
138}
139
140AlignofExpr::AlignofExpr( Expression *expr_, Expression *_aname ) :
141 Expression( _aname ), expr(expr_), type(0), isType(false) {
[bfebb6c5]142 add_result( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) );
[47534159]143}
144
145AlignofExpr::AlignofExpr( Type *type_, Expression *_aname ) :
146 Expression( _aname ), expr(0), type(type_), isType(true) {
[bfebb6c5]147 add_result( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) );
[47534159]148}
149
150AlignofExpr::AlignofExpr( const AlignofExpr &other ) :
151 Expression( other ), expr( maybeClone( other.expr ) ), type( maybeClone( other.type ) ), isType( other.isType ) {
152}
153
154AlignofExpr::~AlignofExpr() {
155 delete expr;
156 delete type;
157}
158
159void AlignofExpr::print( std::ostream &os, int indent) const {
160 os << std::string( indent, ' ' ) << "Alignof Expression on: ";
161
[0dd3a2f]162 if (isType)
163 type->print(os, indent + 2);
164 else
165 expr->print(os, indent + 2);
[51b73452]166
[0dd3a2f]167 os << std::endl;
168 Expression::print( os, indent );
[51b73452]169}
170
[2a4b088]171UntypedOffsetofExpr::UntypedOffsetofExpr( Type *type_, const std::string &member_, Expression *_aname ) :
172 Expression( _aname ), type(type_), member(member_) {
173 add_result( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) );
174}
175
176UntypedOffsetofExpr::UntypedOffsetofExpr( const UntypedOffsetofExpr &other ) :
177 Expression( other ), type( maybeClone( other.type ) ), member( other.member ) {}
178
179UntypedOffsetofExpr::~UntypedOffsetofExpr() {
180 delete type;
181}
182
183void UntypedOffsetofExpr::print( std::ostream &os, int indent) const {
184 os << std::string( indent, ' ' ) << "Untyped Offsetof Expression on member " << member << " of ";
185
186 if ( type ) {
187 type->print(os, indent + 2);
188 } else {
189 os << "<NULL>";
190 }
191
192 os << std::endl;
193 Expression::print( os, indent );
194}
195
[25a054f]196OffsetofExpr::OffsetofExpr( Type *type_, DeclarationWithType *member_, Expression *_aname ) :
197 Expression( _aname ), type(type_), member(member_) {
[bfebb6c5]198 add_result( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) );
[25a054f]199}
200
201OffsetofExpr::OffsetofExpr( const OffsetofExpr &other ) :
202 Expression( other ), type( maybeClone( other.type ) ), member( maybeClone( other.member ) ) {}
203
204OffsetofExpr::~OffsetofExpr() {
205 delete type;
206 delete member;
207}
208
209void OffsetofExpr::print( std::ostream &os, int indent) const {
210 os << std::string( indent, ' ' ) << "Offsetof Expression on member ";
211
212 if ( member ) {
213 os << member->get_name();
214 } else {
215 os << "<NULL>";
216 }
217
218 os << " of ";
219
220 if ( type ) {
221 type->print(os, indent + 2);
222 } else {
223 os << "<NULL>";
224 }
225
226 os << std::endl;
227 Expression::print( os, indent );
228}
229
[afc1045]230OffsetPackExpr::OffsetPackExpr( StructInstType *type_, Expression *aname_ ) : Expression( aname_ ), type( type_ ) {
231 add_result( new ArrayType( Type::Qualifiers(), new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), 0, false, false ) );
232}
233
234OffsetPackExpr::OffsetPackExpr( const OffsetPackExpr &other ) : Expression( other ), type( maybeClone( other.type ) ) {}
235
236OffsetPackExpr::~OffsetPackExpr() { delete type; }
237
238void OffsetPackExpr::print( std::ostream &os, int indent ) const {
239 os << std::string( indent, ' ' ) << "Offset pack expression on ";
240
241 if ( type ) {
242 type->print(os, indent + 2);
243 } else {
244 os << "<NULL>";
245 }
246
[25a054f]247 os << std::endl;
248 Expression::print( os, indent );
249}
250
[51b73452]251AttrExpr::AttrExpr( Expression *attr, Expression *expr_, Expression *_aname ) :
[0dd3a2f]252 Expression( _aname ), attr( attr ), expr(expr_), type(0), isType(false) {
[51b73452]253}
254
255AttrExpr::AttrExpr( Expression *attr, Type *type_, Expression *_aname ) :
[0dd3a2f]256 Expression( _aname ), attr( attr ), expr(0), type(type_), isType(true) {
[51b73452]257}
258
[0dd3a2f]259AttrExpr::AttrExpr( const AttrExpr &other ) :
260 Expression( other ), attr( maybeClone( other.attr ) ), expr( maybeClone( other.expr ) ), type( maybeClone( other.type ) ), isType( other.isType ) {
[51b73452]261}
262
[0dd3a2f]263AttrExpr::~AttrExpr() {
264 delete attr;
265 delete expr;
266 delete type;
[51b73452]267}
268
269void AttrExpr::print( std::ostream &os, int indent) const {
[44b5ca0]270 os << std::string( indent, ' ' ) << "Attr ";
[0dd3a2f]271 attr->print( os, indent + 2 );
272 if ( isType || expr ) {
273 os << "applied to: ";
[51b73452]274
[0dd3a2f]275 if (isType)
276 type->print(os, indent + 2);
277 else
278 expr->print(os, indent + 2);
279 } // if
[51b73452]280
[0dd3a2f]281 os << std::endl;
282 Expression::print( os, indent );
[51b73452]283}
284
[0dd3a2f]285CastExpr::CastExpr( Expression *arg_, Type *toType, Expression *_aname ) : Expression( _aname ), arg(arg_) {
286 add_result(toType);
[51b73452]287}
288
289CastExpr::CastExpr( Expression *arg_, Expression *_aname ) : Expression( _aname ), arg(arg_) {
290}
291
[0dd3a2f]292CastExpr::CastExpr( const CastExpr &other ) : Expression( other ), arg( maybeClone( other.arg ) ) {
[51b73452]293}
294
295CastExpr::~CastExpr() {
[0dd3a2f]296 delete arg;
[51b73452]297}
298
299// CastExpr *CastExpr::clone() const { return 0; }
300
301void CastExpr::print( std::ostream &os, int indent ) const {
[89231bc]302 os << "Cast of:" << std::endl << std::string( indent+2, ' ' );
[0dd3a2f]303 arg->print(os, indent+2);
[44b5ca0]304 os << std::endl << std::string( indent, ' ' ) << "to:" << std::endl;
[0dd3a2f]305 if ( results.empty() ) {
[44b5ca0]306 os << std::string( indent+2, ' ' ) << "nothing" << std::endl;
[0dd3a2f]307 } else {
308 printAll(results, os, indent+2);
309 } // if
310 Expression::print( os, indent );
311}
312
[51b73452]313UntypedMemberExpr::UntypedMemberExpr( std::string _member, Expression *_aggregate, Expression *_aname ) :
[0dd3a2f]314 Expression( _aname ), member(_member), aggregate(_aggregate) {}
[51b73452]315
[0dd3a2f]316UntypedMemberExpr::UntypedMemberExpr( const UntypedMemberExpr &other ) :
317 Expression( other ), member( other.member ), aggregate( maybeClone( other.aggregate ) ) {
[51b73452]318}
319
320UntypedMemberExpr::~UntypedMemberExpr() {
[0dd3a2f]321 delete aggregate;
[51b73452]322}
323
324void UntypedMemberExpr::print( std::ostream &os, int indent ) const {
[89231bc]325 os << "Untyped Member Expression, with field: " << get_member();
[51b73452]326
[0dd3a2f]327 Expression *agg = get_aggregate();
[9243a501]328 os << ", from aggregate: ";
[89231bc]329 if (agg != 0) {
[bb8ea30]330 os << std::string( indent + 2, ' ' );
[89231bc]331 agg->print(os, indent + 2);
332 }
333 os << std::string( indent+2, ' ' );
[0dd3a2f]334 Expression::print( os, indent );
[51b73452]335}
336
337
338MemberExpr::MemberExpr( DeclarationWithType *_member, Expression *_aggregate, Expression *_aname ) :
[0dd3a2f]339 Expression( _aname ), member(_member), aggregate(_aggregate) {
340 add_result( member->get_type()->clone() );
341 for ( std::list< Type* >::iterator i = get_results().begin(); i != get_results().end(); ++i ) {
342 (*i)->set_isLvalue( true );
343 } // for
[51b73452]344}
345
[39f84a4]346//// is this right? It's cloning the member, but the member is a declaration so probably shouldn't be cloned...
[0dd3a2f]347MemberExpr::MemberExpr( const MemberExpr &other ) :
[39f84a4]348 Expression( other ), member( other.member ), aggregate( maybeClone( other.aggregate ) ) {
[51b73452]349}
350
351MemberExpr::~MemberExpr() {
[39f84a4]352 // delete member;
[0dd3a2f]353 delete aggregate;
[51b73452]354}
355
356void MemberExpr::print( std::ostream &os, int indent ) const {
[89231bc]357 os << "Member Expression, with field: " << std::endl;
[51b73452]358
[0dd3a2f]359 assert( member );
[44b5ca0]360 os << std::string( indent + 2, ' ' );
[0dd3a2f]361 member->print( os, indent + 2 );
362 os << std::endl;
[51b73452]363
[0dd3a2f]364 Expression *agg = get_aggregate();
[44b5ca0]365 os << std::string( indent, ' ' ) << "from aggregate: " << std::endl;
[89231bc]366 if (agg != 0) {
[bb8ea30]367 os << std::string( indent + 2, ' ' );
[89231bc]368 agg->print(os, indent + 2);
369 }
370 os << std::string( indent+2, ' ' );
[0dd3a2f]371 Expression::print( os, indent );
[51b73452]372}
373
374
375UntypedExpr::UntypedExpr( Expression *_function, Expression *_aname ) : Expression( _aname ), function( _function ) {}
376
[0dd3a2f]377UntypedExpr::UntypedExpr( const UntypedExpr &other ) :
378 Expression( other ), function( maybeClone( other.function ) ) {
379 cloneAll( other.args, args );
[51b73452]380}
381
382UntypedExpr::UntypedExpr( Expression *_function, std::list<Expression *> &_args, Expression *_aname ) :
[0dd3a2f]383 Expression( _aname ), function(_function), args(_args) {}
[51b73452]384
[ac71a86]385UntypedExpr::~UntypedExpr() {
386 delete function;
387}
[51b73452]388
389void UntypedExpr::print( std::ostream &os, int indent ) const {
[89231bc]390 os << "Applying untyped: " << std::endl;
[bb8ea30]391 os << std::string( indent+2, ' ' );
392 function->print(os, indent + 2);
[44b5ca0]393 os << std::string( indent, ' ' ) << "...to: " << std::endl;
[bb8ea30]394 printAll(args, os, indent + 2);
[0dd3a2f]395 Expression::print( os, indent );
[51b73452]396}
397
[0dd3a2f]398void UntypedExpr::printArgs( std::ostream &os, int indent ) const {
399 std::list<Expression *>::const_iterator i;
[60089f4]400 for (i = args.begin(); i != args.end(); i++) {
401 os << std::string(indent, ' ' );
[0dd3a2f]402 (*i)->print(os, indent);
[60089f4]403 }
[51b73452]404}
405
406NameExpr::NameExpr( std::string _name, Expression *_aname ) : Expression( _aname ), name(_name) {}
407
[0dd3a2f]408NameExpr::NameExpr( const NameExpr &other ) : Expression( other ), name( other.name ) {
[51b73452]409}
410
411NameExpr::~NameExpr() {}
412
413void NameExpr::print( std::ostream &os, int indent ) const {
[89231bc]414 os << "Name: " << get_name() << std::endl;
[0dd3a2f]415 Expression::print( os, indent );
[51b73452]416}
417
418LogicalExpr::LogicalExpr( Expression *arg1_, Expression *arg2_, bool andp, Expression *_aname ) :
[0dd3a2f]419 Expression( _aname ), arg1(arg1_), arg2(arg2_), isAnd(andp) {
420 add_result( new BasicType( Type::Qualifiers(), BasicType::SignedInt ) );
[51b73452]421}
422
[0dd3a2f]423LogicalExpr::LogicalExpr( const LogicalExpr &other ) :
424 Expression( other ), arg1( maybeClone( other.arg1 ) ), arg2( maybeClone( other.arg2 ) ), isAnd( other.isAnd ) {
[51b73452]425}
426
[a08ba92]427LogicalExpr::~LogicalExpr() {
[0dd3a2f]428 delete arg1;
429 delete arg2;
[51b73452]430}
431
432void LogicalExpr::print( std::ostream &os, int indent )const {
[44b5ca0]433 os << std::string( indent, ' ' ) << "Short-circuited operation (" << (isAnd?"and":"or") << ") on: ";
[0dd3a2f]434 arg1->print(os);
435 os << " and ";
436 arg2->print(os);
437 os << std::endl;
438 Expression::print( os, indent );
[51b73452]439}
440
441ConditionalExpr::ConditionalExpr( Expression *arg1_, Expression *arg2_, Expression *arg3_, Expression *_aname ) :
[0dd3a2f]442 Expression( _aname ), arg1(arg1_), arg2(arg2_), arg3(arg3_) {}
[51b73452]443
[0dd3a2f]444ConditionalExpr::ConditionalExpr( const ConditionalExpr &other ) :
445 Expression( other ), arg1( maybeClone( other.arg1 ) ), arg2( maybeClone( other.arg2 ) ), arg3( maybeClone( other.arg3 ) ) {
446}
[51b73452]447
448ConditionalExpr::~ConditionalExpr() {
[0dd3a2f]449 delete arg1;
450 delete arg2;
451 delete arg3;
[51b73452]452}
453
454void ConditionalExpr::print( std::ostream &os, int indent ) const {
[44b5ca0]455 os << std::string( indent, ' ' ) << "Conditional expression on: " << std::endl;
[0dd3a2f]456 arg1->print( os, indent+2 );
[44b5ca0]457 os << std::string( indent, ' ' ) << "First alternative:" << std::endl;
[0dd3a2f]458 arg2->print( os, indent+2 );
[44b5ca0]459 os << std::string( indent, ' ' ) << "Second alternative:" << std::endl;
[0dd3a2f]460 arg3->print( os, indent+2 );
461 os << std::endl;
462 Expression::print( os, indent );
463}
464
[3be261a]465AsmExpr::AsmExpr( const AsmExpr & other ) : inout( maybeClone( other.inout ) ), constraint( maybeClone( other.constraint ) ), operand( maybeClone( other.operand ) ) {}
466
467
[7f5566b]468void AsmExpr::print( std::ostream &os, int indent ) const {
469 os << "Asm Expression: " << std::endl;
470 if ( inout ) inout->print( os, indent + 2 );
471 if ( constraint ) constraint->print( os, indent + 2 );
472 if ( operand ) operand->print( os, indent + 2 );
473}
474
[db4ecc5]475
476ImplicitCopyCtorExpr::ImplicitCopyCtorExpr( ApplicationExpr * callExpr ) : callExpr( callExpr ) {
477 assert( callExpr );
478 cloneAll( callExpr->get_results(), results );
479}
480
481ImplicitCopyCtorExpr::ImplicitCopyCtorExpr( const ImplicitCopyCtorExpr & other ) : Expression( other ), callExpr( maybeClone( other.callExpr ) ) {
482 cloneAll( other.tempDecls, tempDecls );
483 cloneAll( other.returnDecls, returnDecls );
484 cloneAll( other.dtors, dtors );
485}
486
487ImplicitCopyCtorExpr::~ImplicitCopyCtorExpr() {
488 delete callExpr;
489 deleteAll( tempDecls );
490 deleteAll( returnDecls );
491 deleteAll( dtors );
492}
493
494void ImplicitCopyCtorExpr::print( std::ostream &os, int indent ) const {
495 os << std::string( indent, ' ' ) << "Implicit Copy Constructor Expression: " << std::endl;
496 assert( callExpr );
497 callExpr->print( os, indent + 2 );
498 os << std::endl << std::string( indent, ' ' ) << "with temporaries:" << std::endl;
499 printAll(tempDecls, os, indent+2);
[dc2e7e0]500 os << std::endl << std::string( indent, ' ' ) << "with return temporaries:" << std::endl;
501 printAll(returnDecls, os, indent+2);
[db4ecc5]502 Expression::print( os, indent );
503}
504
[3be261a]505UntypedValofExpr::UntypedValofExpr( const UntypedValofExpr & other ) : Expression( other ), body ( maybeClone( other.body ) ) {}
506
507UntypedValofExpr::~UntypedValofExpr() { delete body; }
508
[0dd3a2f]509void UntypedValofExpr::print( std::ostream &os, int indent ) const {
[44b5ca0]510 os << std::string( indent, ' ' ) << "Valof Expression: " << std::endl;
[0dd3a2f]511 if ( get_body() != 0 )
512 get_body()->print( os, indent + 2 );
513}
514
[3be261a]515
[630a82a]516CompoundLiteralExpr::CompoundLiteralExpr( Type * type, Initializer * initializer ) : type( type ), initializer( initializer ) {
517 add_result( type->clone() );
518}
519
520CompoundLiteralExpr::CompoundLiteralExpr( const CompoundLiteralExpr &other ) : Expression( other ), type( maybeClone( other.type ) ), initializer( maybeClone( other.initializer ) ) {}
521
522CompoundLiteralExpr::~CompoundLiteralExpr() {
523 delete initializer;
524 delete type;
525}
526
527void CompoundLiteralExpr::print( std::ostream &os, int indent ) const {
528 os << "Compound Literal Expression: " << std::endl;
529 if ( type ) type->print( os, indent + 2 );
530 if ( initializer ) initializer->print( os, indent + 2 );
531}
532
[d9e2280]533RangeExpr::RangeExpr( Expression *low, Expression *high ) : low( low ), high( high ) {}
[8688ce1]534RangeExpr::RangeExpr( const RangeExpr &other ) : low( other.low->clone() ), high( other.high->clone() ) {}
535void RangeExpr::print( std::ostream &os, int indent ) const {
536 os << std::string( indent, ' ' ) << "Range Expression: ";
537 low->print( os, indent );
538 os << " ... ";
539 high->print( os, indent );
540}
[3be261a]541
[baf7fee]542std::ostream & operator<<( std::ostream & out, Expression * expr ) {
543 expr->print( out );
544 return out;
545}
546
[0dd3a2f]547// Local Variables: //
548// tab-width: 4 //
549// mode: c++ //
550// compile-command: "make install" //
551// End: //
Note: See TracBrowser for help on using the repository browser.