Changeset 6e50a6b for src/SynTree/Expression.h
- Timestamp:
- Jun 18, 2021, 12:20:59 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- c7d8696a
- Parents:
- dcbfcbc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
rdcbfcbc r6e50a6b 587 587 }; 588 588 589 /// DimensionExpr represents a type-system provided value used in an expression ( forrall([N]) ... N + 1 ) 590 class DimensionExpr : public Expression { 591 public: 592 std::string name; 593 594 DimensionExpr( std::string name ); 595 DimensionExpr( const DimensionExpr & other ); 596 virtual ~DimensionExpr(); 597 598 const std::string & get_name() const { return name; } 599 void set_name( std::string newValue ) { name = newValue; } 600 601 virtual DimensionExpr * clone() const override { return new DimensionExpr( * this ); } 602 virtual void accept( Visitor & v ) override { v.visit( this ); } 603 virtual void accept( Visitor & v ) const override { v.visit( this ); } 604 virtual Expression * acceptMutator( Mutator & m ) override { return m.mutate( this ); } 605 virtual void print( std::ostream & os, Indenter indent = {} ) const override; 606 }; 607 589 608 /// AsmExpr represents a GCC 'asm constraint operand' used in an asm statement: [output] "=f" (result) 590 609 class AsmExpr : public Expression {
Note: See TracChangeset
for help on using the changeset viewer.