Changeset 24d6572 for src/Parser/lex.ll
- Timestamp:
- Jun 12, 2023, 2:45:32 PM (2 years ago)
- Branches:
- ast-experimental, master
- Children:
- 62d62db
- Parents:
- 34b4268 (diff), 251ce80 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r34b4268 r24d6572 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : T hu Oct 13 20:46:04 202213 * Update Count : 76 412 * Last Modified On : Tue May 2 08:45:21 2023 13 * Update Count : 769 14 14 */ 15 15 … … 23 23 // line-number directives) and C/C++ style comments, which are ignored. 24 24 25 // **************************** Includes and Defines ****************************25 // *************************** Includes and Defines **************************** 26 26 27 27 #ifdef __clang__ … … 44 44 45 45 #include "config.h" // configure info 46 #include "DeclarationNode.h" // for DeclarationNode 47 #include "ExpressionNode.h" // for LabelNode 48 #include "InitializerNode.h" // for InitializerNode 46 49 #include "ParseNode.h" 50 #include "ParserTypes.h" // for Token 51 #include "StatementNode.h" // for CondCtl, ForCtrl 47 52 #include "TypedefTable.h" 53 // This (generated) header must come late as it is missing includes. 54 #include "parser.hh" // generated info 48 55 49 56 string * build_postfix_name( string * name ); … … 214 221 __alignof { KEYWORD_RETURN(ALIGNOF); } // GCC 215 222 __alignof__ { KEYWORD_RETURN(ALIGNOF); } // GCC 223 and { QKEYWORD_RETURN(WAND); } // CFA 216 224 asm { KEYWORD_RETURN(ASM); } 217 225 __asm { KEYWORD_RETURN(ASM); } // GCC … … 250 258 enable { KEYWORD_RETURN(ENABLE); } // CFA 251 259 enum { KEYWORD_RETURN(ENUM); } 260 exception { KEYWORD_RETURN(EXCEPTION); } // CFA 252 261 __extension__ { KEYWORD_RETURN(EXTENSION); } // GCC 253 exception { KEYWORD_RETURN(EXCEPTION); } // CFA254 262 extern { KEYWORD_RETURN(EXTERN); } 255 263 fallthrough { KEYWORD_RETURN(FALLTHROUGH); } // CFA … … 340 348 vtable { KEYWORD_RETURN(VTABLE); } // CFA 341 349 waitfor { KEYWORD_RETURN(WAITFOR); } // CFA 350 waituntil { KEYWORD_RETURN(WAITUNTIL); } // CFA 342 351 when { KEYWORD_RETURN(WHEN); } // CFA 343 352 while { KEYWORD_RETURN(WHILE); } … … 502 511 SemanticErrorThrow = true; 503 512 cerr << (yyfilename ? yyfilename : "*unknown file*") << ':' << yylineno << ':' << column - yyleng + 1 504 << ": " << ErrorHelpers::error_str() << errmsg << " attoken \"" << (yytext[0] == '\0' ? "EOF" : yytext) << '"' << endl;513 << ": " << ErrorHelpers::error_str() << errmsg << " before token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << '"' << endl; 505 514 } 506 515
Note:
See TracChangeset
for help on using the changeset viewer.