Changeset c27fb59
- Timestamp:
- Feb 22, 2018, 9:30:25 PM (7 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:
- ad4458f
- Parents:
- 8f13c98
- Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r8f13c98 rc27fb59 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 22 1 5:31:48201813 // Update Count : 82 612 // Last Modified On : Thu Feb 22 17:49:31 2018 13 // Update Count : 827 14 14 // 15 15 … … 209 209 enum Length { Short, Long, LongLong, NoLength }; 210 210 static const char * lengthNames[]; 211 enum Aggregate { Struct, Union, Trait, Coroutine, Monitor, Thread, NoAggregate };211 enum Aggregate { Struct, Union, Exception, Trait, Coroutine, Monitor, Thread, NoAggregate }; 212 212 static const char * aggregateNames[]; 213 213 enum TypeClass { Otype, Dtype, Ftype, Ttype, NoTypeClass }; -
src/Parser/lex.ll
r8f13c98 rc27fb59 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Wed Oct 25 13:53:56 201713 * Update Count : 63 412 * Last Modified On : Thu Feb 22 18:11:27 2018 13 * Update Count : 637 14 14 */ 15 15 … … 232 232 enum { KEYWORD_RETURN(ENUM); } 233 233 __extension__ { KEYWORD_RETURN(EXTENSION); } // GCC 234 exception { KEYWORD_RETURN(EXCEPTION); } // CFA 234 235 extern { KEYWORD_RETURN(EXTERN); } 235 236 fallthru { KEYWORD_RETURN(FALLTHRU); } // CFA -
src/Parser/parser.yy
r8f13c98 rc27fb59 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 22 1 5:31:19201813 // Update Count : 302 712 // Last Modified On : Thu Feb 22 17:48:54 2018 13 // Update Count : 3028 14 14 // 15 15 … … 187 187 %token TYPEOF LABEL // GCC 188 188 %token ENUM STRUCT UNION 189 %token EXCEPTION // CFA 189 190 %token COROUTINE MONITOR THREAD // CFA 190 191 %token OTYPE FTYPE DTYPE TTYPE TRAIT // CFA … … 1891 1892 | UNION 1892 1893 { $$ = DeclarationNode::Union; } 1894 | EXCEPTION 1895 { $$ = DeclarationNode::Exception; } 1893 1896 | COROUTINE 1894 1897 { $$ = DeclarationNode::Coroutine; }
Note: See TracChangeset
for help on using the changeset viewer.