main.cc
changeset 315 c62a4078f269
parent 279 c0453b7f99df
child 350 2c3c4dc34979
equal deleted inserted replaced
314:41d4ac0b4821 315:c62a4078f269
   180   /* 1st Pass */
   180   /* 1st Pass */
   181   if (stage1_2(argv[optind], &tree_root, stage1_2_options) < 0)
   181   if (stage1_2(argv[optind], &tree_root, stage1_2_options) < 0)
   182     return EXIT_FAILURE;
   182     return EXIT_FAILURE;
   183 
   183 
   184   /* 2nd Pass */
   184   /* 2nd Pass */
   185   absyntax_utils_init(tree_root);
   185     /* basically loads some symbol tables to speed up look ups later on */
   186   add_en_eno_param_decl_c::add_to(tree_root);
   186   absyntax_utils_init(tree_root);  
   187 
   187     /* moved to bison, although it could perfectly well still be here instead of in bison code. */
   188   /* not yet implemented... */
   188   //add_en_eno_param_decl_c::add_to(tree_root);
       
   189 
       
   190   /* Only very simple (not yet complete) data type checking currently implemented... */
   189   if (stage3(tree_root) < 0)
   191   if (stage3(tree_root) < 0)
   190     return EXIT_FAILURE;
   192     return EXIT_FAILURE;
   191   
   193   
   192 
   194 
   193   /* 3rd Pass */
   195   /* 3rd Pass */
   194   if (stage4(tree_root, builddir) < 0)
   196   if (stage4(tree_root, builddir) < 0)
   195     return EXIT_FAILURE;
   197     return EXIT_FAILURE;
   196 
   198 
   197   /* 4th Pass */
   199   /* 4th Pass */
       
   200   /* Call gcc, g++, or whatever... */
   198   /* Currently implemented in the Makefile! */
   201   /* Currently implemented in the Makefile! */
   199 
   202 
   200   return 0;
   203   return 0;
   201 }
   204 }
   202 
   205