- Timestamp:
- Jan 30, 2023, 7:16:12 PM (23 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- a5f9444
- Parents:
- ad861ef
- Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
rad861ef r79a6b17 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Fri Jan 20 12:08:37202313 * Update Count : 76 612 * Last Modified On : Mon Jan 30 19:03:34 2023 13 * Update Count : 767 14 14 */ 15 15 … … 503 503 SemanticErrorThrow = true; 504 504 cerr << (yyfilename ? yyfilename : "*unknown file*") << ':' << yylineno << ':' << column - yyleng + 1 505 << ": " << ErrorHelpers::error_str() << errmsg << " attoken \"" << (yytext[0] == '\0' ? "EOF" : yytext) << '"' << endl;505 << ": " << ErrorHelpers::error_str() << errmsg << " before token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << '"' << endl; 506 506 } 507 507 -
src/Parser/parser.yy
rad861ef r79a6b17 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jan 20 12:11:56202313 // Update Count : 585 512 // Last Modified On : Mon Jan 30 18:59:23 2023 13 // Update Count : 5856 14 14 // 15 15 … … 1996 1996 declaration_specifier: // type specifier + storage class 1997 1997 basic_declaration_specifier 1998 | type_declaration_specifier 1998 1999 | sue_declaration_specifier 1999 | type_declaration_specifier 2000 | sue_declaration_specifier invalid_types 2001 { 2002 SemanticError( yylloc, 2003 ::toString( "Missing ';' after end of ", 2004 $1->type->enumeration.name ? "enum" : AggregateDecl::aggrString( $1->type->aggregate.kind ), 2005 " declaration" ) ); 2006 $$ = nullptr; 2007 } 2008 ; 2009 2010 invalid_types: 2011 aggregate_key 2012 | basic_type_name 2013 | indirect_type 2000 2014 ; 2001 2015
Note: See TracChangeset
for help on using the changeset viewer.