stage1_2/stage1_2.cc
changeset 68 b0a43002dcac
parent 20 81a06a308b7e
child 74 85af9521bf63
equal deleted inserted replaced
67:08097122a922 68:b0a43002dcac
    55 const char *current_filename = NULL;
    55 const char *current_filename = NULL;
    56 
    56 
    57 
    57 
    58 
    58 
    59 
    59 
    60 /*****************************************************/
    60 /****************************************************/
    61 /* Controlling the entry to the st_il_state in flex. */
    61 /* Controlling the entry to the body_state in flex. */
    62 /*****************************************************/
    62 /****************************************************/
    63 
       
    64 static int goto_body_state__ = 0;
    63 static int goto_body_state__ = 0;
    65 
    64 
    66 void cmd_goto_body_state(void) {goto_body_state__ = 1;}
    65 void cmd_goto_body_state(void) {goto_body_state__ = 1;}
    67 int  get_goto_body_state(void) {return goto_body_state__;}
    66 int  get_goto_body_state(void) {return goto_body_state__;}
    68 void rst_goto_body_state(void) {goto_body_state__ = 0;}
    67 void rst_goto_body_state(void) {goto_body_state__ = 0;}
    69 
    68 
       
    69 /*************************************************************/
       
    70 /* Controlling the entry to the sfc_qualifier_state in flex. */
       
    71 /*************************************************************/
       
    72 static int goto_sfc_qualifier_state__ = 0;
       
    73 
       
    74 void cmd_goto_sfc_qualifier_state(void) {goto_sfc_qualifier_state__ = 1;}
       
    75 int  get_goto_sfc_qualifier_state(void) {return goto_sfc_qualifier_state__;}
       
    76 void rst_goto_sfc_qualifier_state(void) {goto_sfc_qualifier_state__ = 0;}
       
    77 
       
    78 
       
    79 /****************************************************************/
       
    80 /* Returning to state in flex previously pushed onto the stack. */
       
    81 /****************************************************************/
       
    82 static int pop_state__ = 0;
       
    83 
       
    84 void cmd_pop_state(void) {pop_state__ = 1;}
       
    85 int  get_pop_state(void) {return pop_state__;}
       
    86 void rst_pop_state(void) {pop_state__ = 0;}
    70 
    87 
    71 
    88 
    72 /*********************************/
    89 /*********************************/
    73 /* The global symbol tables...   */
    90 /* The global symbol tables...   */
    74 /*********************************/
    91 /*********************************/