Changeset f673c13c for src/Parser
- Timestamp:
- Jul 25, 2019, 9:34:18 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 033ff37
- Parents:
- a92a4fe
- Location:
- src/Parser
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
ra92a4fe rf673c13c 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 1 16:49:17201913 // Update Count : 111 312 // Last Modified On : Thu Jul 25 17:13:06 2019 13 // Update Count : 1115 14 14 // 15 15 … … 49 49 const char * DeclarationNode::aggregateNames[] = { "struct", "union", "trait", "coroutine", "monitor", "thread", "NoAggregateNames" }; 50 50 const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" }; 51 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", " zero_t", "one_t", "NoBuiltinTypeNames" };51 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "__auto_type", "zero_t", "one_t", "NoBuiltinTypeNames" }; 52 52 53 53 UniqueName DeclarationNode::anonymous( "__anonymous" ); -
src/Parser/ParseNode.h
ra92a4fe rf673c13c 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 15 14:22:39201913 // Update Count : 87 412 // Last Modified On : Thu Jul 25 15:49:51 2019 13 // Update Count : 875 14 14 // 15 15 … … 221 221 enum TypeClass { Otype, Dtype, Ftype, Ttype, NoTypeClass }; 222 222 static const char * typeClassNames[]; 223 enum BuiltinType { Valist, Zero, One, NoBuiltinType };223 enum BuiltinType { Valist, AutoType, Zero, One, NoBuiltinType }; 224 224 static const char * builtinTypeNames[]; 225 225 -
src/Parser/lex.ll
ra92a4fe rf673c13c 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Wed May 15 21:25:27201913 * Update Count : 7 0812 * Last Modified On : Thu Jul 25 15:46:05 2019 13 * Update Count : 715 14 14 */ 15 15 … … 218 218 __attribute__ { KEYWORD_RETURN(ATTRIBUTE); } // GCC 219 219 auto { KEYWORD_RETURN(AUTO); } 220 __auto_type { KEYWORD_RETURN(AUTO_TYPE); } 220 221 basetypeof { KEYWORD_RETURN(BASETYPEOF); } // CFA 221 222 _Bool { KEYWORD_RETURN(BOOL); } // C99 … … 292 293 __restrict__ { KEYWORD_RETURN(RESTRICT); } // GCC 293 294 return { KEYWORD_RETURN(RETURN); } 295 /* resume { KEYWORD_RETURN(RESUME); } // CFA */ 294 296 short { KEYWORD_RETURN(SHORT); } 295 297 signed { KEYWORD_RETURN(SIGNED); } … … 300 302 _Static_assert { KEYWORD_RETURN(STATICASSERT); } // C11 301 303 struct { KEYWORD_RETURN(STRUCT); } 304 /* suspend { KEYWORD_RETURN(SUSPEND); } // CFA */ 302 305 switch { KEYWORD_RETURN(SWITCH); } 303 306 thread { KEYWORD_RETURN(THREAD); } // C11 -
src/Parser/parser.yy
ra92a4fe rf673c13c 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jul 14 07:54:30201913 // Update Count : 435 512 // Last Modified On : Thu Jul 25 15:49:52 2019 13 // Update Count : 4356 14 14 // 15 15 … … 272 272 %token ZERO_T ONE_T // CFA 273 273 %token VALIST // GCC 274 %token AUTO_TYPE // GCC 274 275 %token TYPEOF BASETYPEOF LABEL // GCC 275 276 %token ENUM STRUCT UNION … … 1871 1872 | VALIST // GCC, __builtin_va_list 1872 1873 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); } 1874 | AUTO_TYPE 1875 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::AutoType ); } 1873 1876 ; 1874 1877
Note: See TracChangeset
for help on using the changeset viewer.