stage1_2/stage1_2.cc
changeset 952 e984cfdf3b10
parent 946 c012a64dc2fa
child 971 8aee27d46208
equal deleted inserted replaced
951:f53ea4c8621c 952:e984cfdf3b10
    70 /**************************************************************************/
    70 /**************************************************************************/
    71 /* whether to allow REF(), DREF(), REF_TO, NULL and ^ operators/keywords  */
    71 /* whether to allow REF(), DREF(), REF_TO, NULL and ^ operators/keywords  */
    72 /**************************************************************************/
    72 /**************************************************************************/
    73 bool get_opt_ref_standard_extensions() {return runtime_options.ref_standard_extensions;}
    73 bool get_opt_ref_standard_extensions() {return runtime_options.ref_standard_extensions;}
    74 
    74 
       
    75 
       
    76 /**********************************************************************************************/
       
    77 /* whether bison is doing the pre-parsing, where POU bodies and var declarations are ignored! */
       
    78 /**********************************************************************************************/
       
    79 static bool preparse_state__ = false;
       
    80 
       
    81 void set_preparse_state(void) {preparse_state__ = true; }
       
    82 void rst_preparse_state(void) {preparse_state__ = false;}
       
    83 bool get_preparse_state(void) {return preparse_state__;}     // returns true if bison is in preparse state
    75 
    84 
    76 
    85 
    77 /****************************************************/
    86 /****************************************************/
    78 /* Controlling the entry to the body_state in flex. */
    87 /* Controlling the entry to the body_state in flex. */
    79 /****************************************************/
    88 /****************************************************/