main.cc
changeset 202 da1a8186f86f
parent 186 f0a41f731cea
child 261 db2ad6541d92
equal deleted inserted replaced
201:e657008f43d0 202:da1a8186f86f
    79 
    79 
    80 
    80 
    81 #include "stage1_2/stage1_2.hh"
    81 #include "stage1_2/stage1_2.hh"
    82 #include "absyntax_utils/absyntax_utils.hh"
    82 #include "absyntax_utils/absyntax_utils.hh"
    83 
    83 
    84 //int stage3(symbol_c *tree_root);
    84 int stage3(symbol_c *tree_root);
    85 int stage4(symbol_c *tree_root, const char *builddir);
    85 int stage4(symbol_c *tree_root, const char *builddir);
    86 
    86 
    87 
    87 
    88 static void printusage(const char *cmd) {
    88 static void printusage(const char *cmd) {
    89   printf("syntax: %s [-h] [-f] [-s] [-I <include_directory>] [-T <target_directory>] <input_file>\n", cmd);
    89   printf("syntax: %s [-h] [-f] [-s] [-I <include_directory>] [-T <target_directory>] <input_file>\n", cmd);
   170   if (stage1_2(argv[optind], &tree_root, stage1_2_options) < 0)
   170   if (stage1_2(argv[optind], &tree_root, stage1_2_options) < 0)
   171     return EXIT_FAILURE;
   171     return EXIT_FAILURE;
   172 
   172 
   173   /* 2nd Pass */
   173   /* 2nd Pass */
   174   absyntax_utils_init(tree_root);
   174   absyntax_utils_init(tree_root);
       
   175   add_en_eno_param_decl_c::add_to(tree_root);
       
   176 
   175   /* not yet implemented... */
   177   /* not yet implemented... */
   176   /*
       
   177   if (stage3(tree_root) < 0)
   178   if (stage3(tree_root) < 0)
   178     return EXIT_FAILURE;
   179     return EXIT_FAILURE;
   179   */
   180   
   180 
   181 
   181   /* 3rd Pass */
   182   /* 3rd Pass */
   182   if (stage4(tree_root, builddir) < 0)
   183   if (stage4(tree_root, builddir) < 0)
   183     return EXIT_FAILURE;
   184     return EXIT_FAILURE;
   184 
   185