14 lines
477 B
C
14 lines
477 B
C
#include "../Headers/slex_core.h"
|
|
#include <stdio.h>
|
|
|
|
bool slex_translate_to_file(slex_options *options, slex_rules *rules, FILE *output_file)
|
|
{
|
|
if (!options || !rules || !output_file) return false;
|
|
|
|
if (options->target_language == c_language) {
|
|
return slex_translate_to_file_c(options, rules, output_file);
|
|
} else if (options->target_language == csharp) {
|
|
return slex_translate_to_file_csharp(options, rules, output_file);
|
|
}
|
|
return false;
|
|
} |