Changeset 640b3df for src/main.cc
- Timestamp:
- Feb 21, 2023, 4:24:34 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 257a8f5, ce44c5f
- Parents:
- 1180175 (diff), 9a533ba (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/main.cc
r1180175 r640b3df 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Oct 5 12:06:00 202213 // Update Count : 6 7912 // Last Modified On : Thr Feb 16 10:08:00 2023 13 // Update Count : 680 14 14 // 15 15 … … 40 40 #include "CodeTools/TrackLoc.h" // for fillLocations 41 41 #include "Common/CodeLocationTools.hpp" // for forceFillCodeLocations 42 #include "Common/CompilerError.h" // for CompilerError43 42 #include "Common/DeclStats.hpp" // for printDeclStats 44 43 #include "Common/ResolvProtoDump.hpp" // for dumpAsResolverProto 45 44 #include "Common/Stats.h" // for Stats 46 #include "Common/UnimplementedError.h" // for UnimplementedError47 45 #include "Common/utility.h" // for deleteAll, filter, printAll 48 46 #include "Concurrency/Actors.hpp" // for implementActors … … 274 272 FILE * gcc_builtins = fopen( (PreludeDirector + "/gcc-builtins.cf").c_str(), "r" ); 275 273 assertf( gcc_builtins, "cannot open gcc-builtins.cf\n" ); 276 parse( gcc_builtins, LinkageSpec::Compiler );274 parse( gcc_builtins, ast::Linkage::Compiler ); 277 275 278 276 // read the extra prelude in, if not generating the cfa library 279 277 FILE * extras = fopen( (PreludeDirector + "/extras.cf").c_str(), "r" ); 280 278 assertf( extras, "cannot open extras.cf\n" ); 281 parse( extras, LinkageSpec::BuiltinC );279 parse( extras, ast::Linkage::BuiltinC ); 282 280 283 281 if ( ! libcfap ) { … … 285 283 FILE * prelude = fopen( (PreludeDirector + "/prelude.cfa").c_str(), "r" ); 286 284 assertf( prelude, "cannot open prelude.cfa\n" ); 287 parse( prelude, LinkageSpec::Intrinsic );285 parse( prelude, ast::Linkage::Intrinsic ); 288 286 289 287 // Read to cfa builtins, if not generating the cfa library 290 288 FILE * builtins = fopen( (PreludeDirector + "/builtins.cf").c_str(), "r" ); 291 289 assertf( builtins, "cannot open builtins.cf\n" ); 292 parse( builtins, LinkageSpec::BuiltinCFA );293 } // if 294 } // if 295 296 parse( input, libcfap ? LinkageSpec::Intrinsic : LinkageSpec::Cforall, yydebug );290 parse( builtins, ast::Linkage::BuiltinCFA ); 291 } // if 292 } // if 293 294 parse( input, libcfap ? ast::Linkage::Intrinsic : ast::Linkage::Cforall, yydebug ); 297 295 298 296 transUnit = buildUnit(); … … 342 340 PASS( "Generate Autogen Routines", Validate::autogenerateRoutines( transUnit ) ); 343 341 344 PASS( "Implement Actors", Concurrency::implementActors( transUnit ) ); 345 342 PASS( "Implement Actors", Concurrency::implementActors( transUnit ) ); 346 343 PASS( "Implement Mutex", Concurrency::implementMutex( transUnit ) ); 347 344 PASS( "Implement Thread Start", Concurrency::implementThreadStarter( transUnit ) ); … … 476 473 } // if 477 474 e.print(); 478 if ( output != &cout ) {479 delete output;480 } // if481 return EXIT_FAILURE;482 } catch ( UnimplementedError & e ) {483 cout << "Sorry, " << e.get_what() << " is not currently implemented" << endl;484 if ( output != &cout ) {485 delete output;486 } // if487 return EXIT_FAILURE;488 } catch ( CompilerError & e ) {489 cerr << "Compiler Error: " << e.get_what() << endl;490 cerr << "(please report bugs to [REDACTED])" << endl;491 475 if ( output != &cout ) { 492 476 delete output;
Note:
See TracChangeset
for help on using the changeset viewer.