This file parses the input parameters, prepares a list of files to be parsed and calls parser for each of them. More...
#include "tools/schema/sourceparser.hpp"#include "filesystem.hpp"#include <iostream>#include <fstream>#include <string>#include <string.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Parses the command line. | |
Variables | |
| std::string | version = "0.6.0" |
This file parses the input parameters, prepares a list of files to be parsed and calls parser for each of them.
Definition in file schema_generator.cpp.
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Parses the command line.
| 0 | Everything's OK! | |
| 1 | Errors found. User decided to exit. | |
| 2 | No input files found. Please, check your input directory. | |
| 3 | Output file for schema cannot be created. | |
| 4 | Output file for regex list cannot be created. |
Getting full list of files recursively.
Let the user decide whether error are great or just misprints. If any error found, waits for a Yy or Nn to continue or not.
Definition at line 45 of file schema_generator.cpp.
References ENTIRE_FILE_PATH, schema_validation::class_source_parser::expand(), file_exists(), file_name(), get_files_in_dir(), is_directory(), schema_validation::class_error_container::is_empty(), schema_validation::class_source_parser::parse_source(), schema_validation::class_error_container::print_errors(), schema_validation::class_source_parser::save_schema(), schema_validation::class_source_parser::see_errors(), schema_validation::class_source_parser::set_input(), schema_validation::class_source_parser::set_output(), schema_validation::test_regex(), and game_config::version.

| std::string version = "0.6.0" |
Definition at line 34 of file schema_generator.cpp.
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:10:54 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |