- Timestamp:
- Jul 10, 2024, 3:39:37 AM (4 months ago)
- Branches:
- master
- Children:
- 725f777f
- Parents:
- bb336a6 (diff), f3811df (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cpp
rbb336a6 rdbff8ec 483 483 Default: // char default string type 484 484 default: 485 strtype = new ast::BasicType( ast::BasicKind::Char , ast::CV::Const);485 strtype = new ast::BasicType( ast::BasicKind::Char ); 486 486 } // switch 487 487 ast::ArrayType * at = new ast::ArrayType( -
src/Parser/parser.yy
rbb336a6 rdbff8ec 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Jun 27 14:45:57202413 // Update Count : 67 0512 // Last Modified On : Tue Jul 9 10:29:01 2024 13 // Update Count : 6713 14 14 // 15 15 … … 1998 1998 c_declaration ';' 1999 1999 | cfa_declaration ';' // CFA 2000 | static_assert // C112000 | static_assert ';' // C11 2001 2001 ; 2002 2002 2003 2003 static_assert: 2004 STATICASSERT '(' constant_expression ',' string_literal ')' ';'// C112004 STATICASSERT '(' constant_expression ',' string_literal ')' // C11 2005 2005 { $$ = DeclarationNode::newStaticAssert( $3, maybeMoveBuild( $5 ) ); } 2006 | STATICASSERT '(' constant_expression ')' ';'// CFA2006 | STATICASSERT '(' constant_expression ')' // CFA 2007 2007 { $$ = DeclarationNode::newStaticAssert( $3, build_constantStr( yylloc, *new string( "\"\"" ) ) ); } 2008 2008 … … 2709 2709 { $$ = $2; } // mark all fields in list 2710 2710 | cfa_typedef_declaration ';' // CFA 2711 | static_assert 2711 | static_assert ';' // C11 2712 2712 ; 2713 2713 … … 3364 3364 $$ = $6; 3365 3365 } 3366 | ';' // empty declaration 3367 { $$ = nullptr; } 3366 3368 ; 3367 3369
Note: See TracChangeset
for help on using the changeset viewer.