Changes in src/AST/Expr.hpp [20a5977:20de6fb]
- File:
-
- 1 edited
-
src/AST/Expr.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r20a5977 r20de6fb 337 337 public: 338 338 std::string rep; 339 enum Kind { Integer, FloatingPoint, String } kind;340 339 341 340 ConstantExpr( 342 const CodeLocation & loc, const Type * ty, const std::string & r, unsigned long long v, 343 Kind k = Integer ) 344 : Expr( loc, ty ), val( v ), rep( r ), kind( k ) {} 341 const CodeLocation & loc, const Type * ty, const std::string & r, unsigned long long v ) 342 : Expr( loc, ty ), val( v ), rep( r ) {} 345 343 ConstantExpr( const CodeLocation & loc, const Type * ty, const std::string & r, double v ) 346 : Expr( loc, ty ), val( v ), rep( r ) , kind( FloatingPoint ){}344 : Expr( loc, ty ), val( v ), rep( r ) {} 347 345 348 346 /// Gets the value of this constant as an integer
Note:
See TracChangeset
for help on using the changeset viewer.