Changeset a5f0529 for src/Parser
- Timestamp:
- Jul 26, 2017, 2:44:09 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 2edd80ae
- Parents:
- b947fb2
- Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
rb947fb2 ra5f0529 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus Jul 18 10:08:00 201713 // Update Count : 55 012 // Last Modified On : Tus Jul 25 10:11:00 2017 13 // Update Count : 551 14 14 // 15 15 … … 252 252 } 253 253 254 255 Expression *build_virtual_cast( DeclarationNode *decl_node, ExpressionNode *expr_node ) { 256 Type *targetType = maybeMoveBuildType( decl_node ); 257 Expression *castArg = maybeMoveBuild< Expression >( expr_node ); 258 return new VirtualCastExpr( castArg, targetType ); 259 } 260 254 261 Expression *build_fieldSel( ExpressionNode *expr_node, Expression *member ) { 255 262 UntypedMemberExpr *ret = new UntypedMemberExpr( member, maybeMoveBuild< Expression >(expr_node) ); -
src/Parser/ParseNode.h
rb947fb2 ra5f0529 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:28:16 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sat Jul 22 09:32:30 201713 // Update Count : 78 611 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus Jul 25 10:09:00 2017 13 // Update Count : 787 14 14 // 15 15 … … 170 170 171 171 Expression * build_cast( DeclarationNode * decl_node, ExpressionNode * expr_node ); 172 Expression * build_virtual_cast( DeclarationNode * decl_node, ExpressionNode * expr_node ); 172 173 Expression * build_fieldSel( ExpressionNode * expr_node, Expression * member ); 173 174 Expression * build_pfieldSel( ExpressionNode * expr_node, Expression * member ); -
src/Parser/parser.yy
rb947fb2 ra5f0529 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jul 24 09:01:14201713 // Update Count : 246 311 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus Jul 25 10:07:00 2017 13 // Update Count : 2464 14 14 // 15 15 … … 573 573 // VIRTUAL cannot be opt because of look ahead issues 574 574 | '(' VIRTUAL ')' cast_expression 575 { $$ = new ExpressionNode( build_ cast( nullptr, $4 ) ); }575 { $$ = new ExpressionNode( build_virtual_cast( nullptr, $4 ) ); } 576 576 | '(' VIRTUAL type_no_function ')' cast_expression 577 { $$ = new ExpressionNode( build_ cast( $3, $5 ) ); }577 { $$ = new ExpressionNode( build_virtual_cast( $3, $5 ) ); } 578 578 // | '(' type_no_function ')' tuple 579 579 // { $$ = new ExpressionNode( build_cast( $2, $4 ) ); }
Note: See TracChangeset
for help on using the changeset viewer.