stage1_2/stage1_2.hh
changeset 946 c012a64dc2fa
parent 934 2a42a68f4b59
equal deleted inserted replaced
945:477393b00f95 946:c012a64dc2fa
    40 #ifndef _STAGE1_2_HH
    40 #ifndef _STAGE1_2_HH
    41 #define _STAGE1_2_HH
    41 #define _STAGE1_2_HH
    42 
    42 
    43 
    43 
    44 
    44 
    45 /*
    45 /* This file includes the interface through which the main function accesses the stage1_2 services */
    46  * This file includes the interface through which the main function accesses the stage1_2 services 
       
    47  */
       
    48 
    46 
    49 
    47 
    50 
    48 int stage1_2(const char *filename, symbol_c **tree_root);
    51 typedef struct {
       
    52 		/******************************************************/
       
    53 		/* whether we are suporting safe extensions           */
       
    54 		/* as defined in PLCopen - Technical Committee 5      */
       
    55 		/* Safety Software Technical Specification,           */
       
    56 		/* Part 1: Concepts and Function Blocks,              */
       
    57 		/* Version 1.0 – Official Release                     */
       
    58 		/******************************************************/
       
    59 	bool safe_extensions;
       
    60 	bool full_token_loc;           /* error messages specify full token location */
       
    61 	bool conversion_functions;     /* Create a conversion function for derived datatype */
       
    62 	bool nested_comments;          /* Allow the use of nested comments. */
       
    63 	bool ref_standard_extensions;  /* Allow the use of REFerences (keywords REF_TO, REF, DREF, ^, NULL). */
       
    64 	bool ref_nonstand_extensions;  /* Allow the use of non-standard extensions to REF_TO datatypes: REF_TO ANY, and REF_TO in struct elements! */
       
    65 	const char *includedir;        /* Include directory, where included files will be searched for... */
       
    66 } stage1_2_options_t;
       
    67 
       
    68 
       
    69 int stage1_2(const char *filename, symbol_c **tree_root, stage1_2_options_t options);
       
    70 
    49 
    71 
    50 
    72 
    51 
    73 
    52 
    74 
    53