- Timestamp:
- Jul 9, 2024, 10:50:58 AM (5 months ago)
- Branches:
- master
- Children:
- f3811df
- Parents:
- 2f4c910
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r2f4c910 rb9f6791f 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.