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