Changeset 5b639ee for src/Parser/parser.yy
- Timestamp:
- Sep 12, 2016, 9:52:12 PM (9 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, resolv-new, with_gc
- Children:
- 101e0bd
- Parents:
- b6424d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rb6424d9 r5b639ee 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 26 16:45:44201613 // Update Count : 196 412 // Last Modified On : Mon Sep 12 17:29:45 2016 13 // Update Count : 1969 14 14 // 15 15 … … 827 827 { $$ = new StatementNode( build_while( $3, $5 ) ); } 828 828 | DO statement WHILE '(' comma_expression ')' ';' 829 { $$ = new StatementNode( build_while( $5, $2 ) ); }829 { $$ = new StatementNode( build_while( $5, $2, true ) ); } 830 830 | FOR '(' push for_control_expression ')' statement 831 831 { $$ = new StatementNode( build_for( $4, $6 ) ); } … … 1363 1363 { $$ = DeclarationNode::newBasicType( DeclarationNode::Int ); } 1364 1364 | LONG 1365 { $$ = DeclarationNode::new Modifier( DeclarationNode::Long ); }1365 { $$ = DeclarationNode::newLength( DeclarationNode::Long ); } 1366 1366 | SHORT 1367 { $$ = DeclarationNode::new Modifier( DeclarationNode::Short ); }1367 { $$ = DeclarationNode::newLength( DeclarationNode::Short ); } 1368 1368 | SIGNED 1369 { $$ = DeclarationNode::new Modifier( DeclarationNode::Signed ); }1369 { $$ = DeclarationNode::newSignedNess( DeclarationNode::Signed ); } 1370 1370 | UNSIGNED 1371 { $$ = DeclarationNode::new Modifier( DeclarationNode::Unsigned ); }1371 { $$ = DeclarationNode::newSignedNess( DeclarationNode::Unsigned ); } 1372 1372 | VOID 1373 1373 { $$ = DeclarationNode::newBasicType( DeclarationNode::Void ); } … … 1375 1375 { $$ = DeclarationNode::newBasicType( DeclarationNode::Bool ); } 1376 1376 | COMPLEX // C99 1377 { $$ = DeclarationNode::new BasicType( DeclarationNode::Complex ); }1377 { $$ = DeclarationNode::newComplexType( DeclarationNode::Complex ); } 1378 1378 | IMAGINARY // C99 1379 { $$ = DeclarationNode::new BasicType( DeclarationNode::Imaginary ); }1379 { $$ = DeclarationNode::newComplexType( DeclarationNode::Imaginary ); } 1380 1380 | VALIST // GCC, __builtin_va_list 1381 1381 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); } … … 1849 1849 type_class: // CFA 1850 1850 OTYPE 1851 { $$ = DeclarationNode:: Type; }1851 { $$ = DeclarationNode::Otype; } 1852 1852 | DTYPE 1853 1853 { $$ = DeclarationNode::Ftype; }
Note: See TracChangeset
for help on using the changeset viewer.