Changeset bb7422a for src/Parser/parserutility.h
- Timestamp:
- Apr 4, 2023, 2:25:52 PM (14 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- beeff61e, e02e13f
- Parents:
- 4541b09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parserutility.h
r4541b09 rbb7422a 10 10 // Created On : Sat May 16 15:31:46 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : T hr Mar 9 12:16:00 202313 // Update Count : 612 // Last Modified On : Tue Apr 4 14:03:00 2023 13 // Update Count : 7 14 14 // 15 15 16 16 #pragma once 17 17 18 class Expression; 18 #include "AST/Copy.hpp" // for shallowCopy 19 namespace ast { 20 class Expr; 21 } 19 22 20 Expression *notZeroExpr( Expression*orig );23 ast::Expr * notZeroExpr( ast::Expr *orig ); 21 24 22 25 template< typename T > … … 32 35 } 33 36 37 template<typename node_t> 38 node_t * maybeCopy( node_t const * node ) { 39 return node ? ast::shallowCopy( node ) : nullptr; 40 } 41 34 42 // Local Variables: // 35 43 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.