Changeset 6e3eaa57
- Timestamp:
- Jun 4, 2018, 9:40:42 PM (6 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, with_gc
- Children:
- 401e61f
- Parents:
- 9a72c4d
- Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r9a72c4d r6e3eaa57 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 22 11:57:39201813 // Update Count : 80 112 // Last Modified On : Mon Jun 4 21:24:45 2018 13 // Update Count : 802 14 14 // 15 15 … … 314 314 315 315 Expression * build_constantStr( string & str ) { 316 assert( str.length() > 0 ); 316 317 string units; // units 317 318 sepString( str, units, '"' ); // separate constant from units -
src/Parser/parser.yy
r9a72c4d r6e3eaa57 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jun 2 17:18:40201813 // Update Count : 348 712 // Last Modified On : Mon Jun 4 21:24:46 2018 13 // Update Count : 3488 14 14 // 15 15 … … 1338 1338 { $$ = DeclarationNode::newStaticAssert( $3, $5 ); } 1339 1339 | STATICASSERT '(' constant_expression ')' ';' // CFA 1340 { $$ = DeclarationNode::newStaticAssert( $3, build_constantStr( *new string( " " ) ) ); }1340 { $$ = DeclarationNode::newStaticAssert( $3, build_constantStr( *new string( "\"\"" ) ) ); } 1341 1341 1342 1342 // C declaration syntax is notoriously confusing and error prone. Cforall provides its own type, variable and function
Note: See TracChangeset
for help on using the changeset viewer.