Changeset f2f595d7
- Timestamp:
- Feb 16, 2023, 10:49:05 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- cad9edb
- Parents:
- d3bffdb
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Parser/RunParser.cpp ¶
rd3bffdb rf2f595d7 10 10 // Created On : Mon Dec 19 11:00:00 2022 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Thr Dec 22 10:18:00 202213 // Update Count : 112 // Last Modified On : Thr Feb 16 10:08:00 2023 13 // Update Count : 2 14 14 // 15 15 … … 24 24 25 25 // Variables global to the parsing code. 26 LinkageSpec::Spec linkage = LinkageSpec::Cforall;26 ast::Linkage::Spec linkage = ast::Linkage::Cforall; 27 27 TypedefTable typedefTable; 28 28 DeclarationNode * parseTree = nullptr; 29 29 30 void parse( FILE * input, LinkageSpec::Spec linkage, bool alwaysExit ) {30 void parse( FILE * input, ast::Linkage::Spec linkage, bool alwaysExit ) { 31 31 extern int yyparse( void ); 32 32 extern FILE * yyin; -
TabularUnified src/Parser/RunParser.hpp ¶
rd3bffdb rf2f595d7 10 10 // Created On : Mon Dec 19 10:42:00 2022 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Thr Dec 22 10:23:00 202213 // Update Count : 112 // Last Modified On : Thr Feb 16 10:08:00 2023 13 // Update Count : 2 14 14 // 15 15 … … 18 18 #include <iosfwd> // for ostream 19 19 20 #include " SynTree/LinkageSpec.h"// for Spec20 #include "AST/LinkageSpec.hpp" // for Spec 21 21 namespace ast { 22 22 class TranslationUnit; … … 29 29 /// The input file is closed when complete. Exits instead of returning on 30 30 /// error or if alwaysExit is true. 31 void parse( FILE * input, LinkageSpec::Spec linkage, bool alwaysExit = false );31 void parse( FILE * input, ast::Linkage::Spec linkage, bool alwaysExit = false ); 32 32 33 33 /// Drain the internal accumulator of parsed code and build a translation -
TabularUnified src/main.cc ¶
rd3bffdb rf2f595d7 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 … … 272 272 FILE * gcc_builtins = fopen( (PreludeDirector + "/gcc-builtins.cf").c_str(), "r" ); 273 273 assertf( gcc_builtins, "cannot open gcc-builtins.cf\n" ); 274 parse( gcc_builtins, LinkageSpec::Compiler );274 parse( gcc_builtins, ast::Linkage::Compiler ); 275 275 276 276 // read the extra prelude in, if not generating the cfa library 277 277 FILE * extras = fopen( (PreludeDirector + "/extras.cf").c_str(), "r" ); 278 278 assertf( extras, "cannot open extras.cf\n" ); 279 parse( extras, LinkageSpec::BuiltinC );279 parse( extras, ast::Linkage::BuiltinC ); 280 280 281 281 if ( ! libcfap ) { … … 283 283 FILE * prelude = fopen( (PreludeDirector + "/prelude.cfa").c_str(), "r" ); 284 284 assertf( prelude, "cannot open prelude.cfa\n" ); 285 parse( prelude, LinkageSpec::Intrinsic );285 parse( prelude, ast::Linkage::Intrinsic ); 286 286 287 287 // Read to cfa builtins, if not generating the cfa library 288 288 FILE * builtins = fopen( (PreludeDirector + "/builtins.cf").c_str(), "r" ); 289 289 assertf( builtins, "cannot open builtins.cf\n" ); 290 parse( builtins, LinkageSpec::BuiltinCFA );291 } // if 292 } // if 293 294 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 ); 295 295 296 296 transUnit = buildUnit(); … … 340 340 PASS( "Generate Autogen Routines", Validate::autogenerateRoutines( transUnit ) ); 341 341 342 PASS( "Implement Actors", Concurrency::implementActors( transUnit ) ); 343 342 PASS( "Implement Actors", Concurrency::implementActors( transUnit ) ); 344 343 PASS( "Implement Mutex", Concurrency::implementMutex( transUnit ) ); 345 344 PASS( "Implement Thread Start", Concurrency::implementThreadStarter( transUnit ) );
Note: See TracChangeset
for help on using the changeset viewer.