equal
deleted
inserted
replaced
44 |
44 |
45 |
45 |
46 #include "stage1_2.hh" |
46 #include "stage1_2.hh" |
47 #include "iec_bison.h" |
47 #include "iec_bison.h" |
48 #include "stage1_2_priv.hh" |
48 #include "stage1_2_priv.hh" |
49 #include "derived_conversion_functions.hh" |
49 #include "create_enumtype_conversion_functions.hh" |
50 |
50 |
51 |
51 |
52 |
52 |
53 |
53 |
54 /**************************************/ |
54 /**************************************/ |
313 safe_extensions_ = options.safe_extensions; |
313 safe_extensions_ = options.safe_extensions; |
314 conversion_functions_ = options.conversion_functions; |
314 conversion_functions_ = options.conversion_functions; |
315 int ret = stage2__(filename, options.includedir, tree_root_ref, options.full_token_loc); |
315 int ret = stage2__(filename, options.includedir, tree_root_ref, options.full_token_loc); |
316 |
316 |
317 if (conversion_functions_) { |
317 if (conversion_functions_) { |
318 derived_conversion_functions_c derived_conversion_functions(*tree_root_ref); |
318 create_enumtype_conversion_functions_c create_enumtype_conversion_functions_c(*tree_root_ref); |
319 std::string source_code = derived_conversion_functions.get_declaration(*tree_root_ref); |
319 std::string source_code = create_enumtype_conversion_functions_c.get_declaration(*tree_root_ref); |
320 ret = sstage2__(source_code.c_str(), tree_root_ref, false); |
320 ret = sstage2__(source_code.c_str(), tree_root_ref, false); |
321 } |
321 } |
322 return ret; |
322 return ret; |
323 } |
323 } |
324 |
324 |