Changeset 764db43
- Timestamp:
- Jul 24, 2017, 8:52:12 PM (8 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:
- ea91c42
- Parents:
- 637ff81 (diff), 72457b6 (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/lex.ll
r637ff81 r764db43 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Tue Jul 18 07:11:48201713 * Update Count : 54 412 * Last Modified On : Mon Jul 24 08:27:23 2017 13 * Update Count : 545 14 14 */ 15 15 … … 271 271 unsigned { KEYWORD_RETURN(UNSIGNED); } 272 272 __builtin_va_list { KEYWORD_RETURN(VALIST); } // GCC 273 virtual { KEYWORD_RETURN(VIRTUAL); } // CFA 273 274 void { KEYWORD_RETURN(VOID); } 274 275 volatile { KEYWORD_RETURN(VOLATILE); } -
src/Parser/parser.yy
r637ff81 r764db43 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Jul 17 12:17:00201713 // Update Count : 24 5511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jul 24 09:01:14 2017 13 // Update Count : 2463 14 14 // 15 15 … … 118 118 %token RESTRICT // C99 119 119 %token ATOMIC // C11 120 %token FORALL LVALUE MUTEX // CFA 121 %token VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED ZERO_T ONE_T 120 %token FORALL LVALUE MUTEX VIRTUAL // CFA 121 %token VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED 122 %token BOOL COMPLEX IMAGINARY // C99 123 %token ZERO_T ONE_T // CFA 122 124 %token VALIST // GCC 123 %token BOOL COMPLEX IMAGINARY // C99124 125 %token TYPEOF LABEL // GCC 125 126 %token ENUM STRUCT UNION … … 570 571 | '(' type_no_function ')' cast_expression 571 572 { $$ = new ExpressionNode( build_cast( $2, $4 ) ); } 573 // VIRTUAL cannot be opt because of look ahead issues 574 | '(' VIRTUAL ')' cast_expression 575 { $$ = new ExpressionNode( build_cast( nullptr, $4 ) ); } 576 | '(' VIRTUAL type_no_function ')' cast_expression 577 { $$ = new ExpressionNode( build_cast( $3, $5 ) ); } 572 578 // | '(' type_no_function ')' tuple 573 579 // { $$ = new ExpressionNode( build_cast( $2, $4 ) ); } … … 1515 1521 | IMAGINARY // C99 1516 1522 { $$ = DeclarationNode::newComplexType( DeclarationNode::Imaginary ); } 1517 | VALIST // GCC, __builtin_va_list1518 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); }1519 1523 | ZERO_T 1520 1524 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Zero ); } 1521 1525 | ONE_T 1522 1526 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::One ); } 1527 | VALIST // GCC, __builtin_va_list 1528 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); } 1523 1529 ; 1524 1530
Note: See TracChangeset
for help on using the changeset viewer.