Skip to content

Commit b9e7cb6

Browse files
committed
rlparser: Reviewed command-line info
1 parent d4ca9f9 commit b9e7cb6

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

tools/rlparser/rlparser.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,11 @@ int main(int argc, char* argv[])
10491049
// callbacks[] -> We have all the callbacks decomposed into pieces for further analysis
10501050
// funcs[] -> We have all the functions decomposed into pieces for further analysis
10511051

1052+
// Export data as required
1053+
// NOTE: We are exporting data in several common formats (JSON, XML, LUA...) for convenience
1054+
// but this data can be directly used to create bindings for other languages modifying this
1055+
// small parser for every binding need, there is no need to use (and re-parse) the
1056+
// generated files... despite it seems that's the usual approach...
10521057
printf("\nInput file: %s", inFileName);
10531058
printf("\nOutput file: %s", outFileName);
10541059
if (outputFormat == DEFAULT) printf("\nOutput format: DEFAULT\n\n");
@@ -1070,22 +1075,21 @@ int main(int argc, char* argv[])
10701075
//----------------------------------------------------------------------------------
10711076
// Module Functions Definition
10721077
//----------------------------------------------------------------------------------
1073-
10741078
// Show command line usage info
10751079
static void ShowCommandLineInfo(void)
10761080
{
10771081
printf("\n//////////////////////////////////////////////////////////////////////////////////\n");
10781082
printf("// //\n");
1079-
printf("// raylib API parser //\n");
1083+
printf("// rlparser - raylib header API parser //\n");
10801084
printf("// //\n");
1081-
printf("// more info and bugs-report: github.com/raysan5/raylib/parser //\n");
1085+
printf("// more info and bugs-report: github.com/raysan5/raylib/tools/rlparser //\n");
10821086
printf("// //\n");
10831087
printf("// Copyright (c) 2021-2025 Ramon Santamaria (@raysan5) //\n");
10841088
printf("// //\n");
10851089
printf("//////////////////////////////////////////////////////////////////////////////////\n\n");
10861090

10871091
printf("USAGE:\n\n");
1088-
printf(" > raylib_parser [--help] [--input <filename.h>] [--output <filename.ext>] [--format <type>]\n");
1092+
printf(" > rlparser [--help] [--input <filename.h>] [--output <filename.ext>] [--format <type>]\n");
10891093

10901094
printf("\nOPTIONS:\n\n");
10911095
printf(" -h, --help : Show tool version and command line usage help\n\n");
@@ -1102,11 +1106,11 @@ static void ShowCommandLineInfo(void)
11021106
printf(" NOTE: If not specified, the full input file is parsed.\n\n");
11031107

11041108
printf("\nEXAMPLES:\n\n");
1105-
printf(" > raylib_parser --input raylib.h --output api.json\n");
1109+
printf(" > rlparser --input raylib.h --output api.json\n");
11061110
printf(" Process <raylib.h> to generate <api.json>\n\n");
1107-
printf(" > raylib_parser --output raylib_data.info --format XML\n");
1111+
printf(" > rlparser --output raylib_data.info --format XML\n");
11081112
printf(" Process <raylib.h> to generate <raylib_data.info> as XML text data\n\n");
1109-
printf(" > raylib_parser --input raymath.h --output raymath_data.info --format XML --define RMAPI\n");
1113+
printf(" > rlparser --input raymath.h --output raymath_data.info --format XML --define RMAPI\n");
11101114
printf(" Process <raymath.h> to generate <raymath_data.info> as XML text data\n\n");
11111115
}
11121116

0 commit comments

Comments
 (0)