Changes in src/Parser/parser.yy [d0ffed1:dd020c0]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rd0ffed1 rdd020c0 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 28 09:58:10201713 // Update Count : 22 0812 // Last Modified On : Fri Mar 3 21:35:28 2017 13 // Update Count : 2222 14 14 // 15 15 … … 1400 1400 type_qualifier_name: 1401 1401 CONST 1402 { $$ = DeclarationNode::new Qualifier( DeclarationNode::Const ); }1402 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Const ); } 1403 1403 | RESTRICT 1404 { $$ = DeclarationNode::new Qualifier( DeclarationNode::Restrict ); }1404 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Restrict ); } 1405 1405 | VOLATILE 1406 { $$ = DeclarationNode::new Qualifier( DeclarationNode::Volatile ); }1406 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Volatile ); } 1407 1407 | LVALUE // CFA 1408 { $$ = DeclarationNode::new Qualifier( DeclarationNode::Lvalue ); }1408 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Lvalue ); } 1409 1409 | ATOMIC 1410 { $$ = DeclarationNode::new Qualifier( DeclarationNode::Atomic ); }1410 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Atomic ); } 1411 1411 | FORALL '(' 1412 1412 { … … 1448 1448 | REGISTER 1449 1449 { $$ = DeclarationNode::newStorageClass( DeclarationNode::Register ); } 1450 | INLINE // C991451 //{ $$ = DeclarationNode::newStorageClass( DeclarationNode::Inline ); }1452 { $$ = new DeclarationNode; $$->isInline = true; }1453 | FORTRAN // C991454 { $$ = DeclarationNode::newStorageClass( DeclarationNode::Fortran ); }1455 | NORETURN // C111456 //{ $$ = DeclarationNode::newStorageClass( DeclarationNode::Noreturn ); }1457 { $$ = new DeclarationNode; $$->isNoreturn = true; }1458 1450 | THREADLOCAL // C11 1459 1451 { $$ = DeclarationNode::newStorageClass( DeclarationNode::Threadlocal ); } 1452 // Put function specifiers here to simplify parsing rules, but separate them semantically. 1453 | INLINE // C99 1454 { $$ = DeclarationNode::newFuncSpecifier( DeclarationNode::Inline ); } 1455 | FORTRAN // C99 1456 { $$ = DeclarationNode::newFuncSpecifier( DeclarationNode::Fortran ); } 1457 | NORETURN // C11 1458 { $$ = DeclarationNode::newFuncSpecifier( DeclarationNode::Noreturn ); } 1460 1459 ; 1461 1460
Note:
See TracChangeset
for help on using the changeset viewer.