MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / parse

Function parse

engine/source/meta_parser/parser/main.cpp:42–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42int parse(std::string project_input_file_name,
43 std::string source_include_file_name,
44 std::string include_path,
45 std::string sys_include,
46 std::string module_name,
47 std::string show_errors)
48{
49 std::cout << std::endl;
50 std::cout << "Parsing meta data for target \"" << module_name << "\"" << std::endl;
51 std::fstream input_file;
52
53 bool is_show_errors = "0" != show_errors;
54
55 MetaParser parser(
56 project_input_file_name, source_include_file_name, include_path, sys_include, module_name, is_show_errors);
57
58 std::cout << "Parsing in " << include_path << std::endl;
59 int result = parser.parse();
60 if (0 != result)
61 {
62 return result;
63 }
64
65 parser.generateFiles();
66
67 return 0;
68}

Callers 4

mainFunction · 0.70
parserMethod · 0.50
metaExampleFunction · 0.50
loadAssetMethod · 0.50

Calls 2

generateFilesMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected