@@ -1049,6 +1049,11 @@ int main(int argc, char* argv[])
1049
1049
// callbacks[] -> We have all the callbacks decomposed into pieces for further analysis
1050
1050
// funcs[] -> We have all the functions decomposed into pieces for further analysis
1051
1051
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...
1052
1057
printf ("\nInput file: %s" , inFileName );
1053
1058
printf ("\nOutput file: %s" , outFileName );
1054
1059
if (outputFormat == DEFAULT ) printf ("\nOutput format: DEFAULT\n\n" );
@@ -1070,22 +1075,21 @@ int main(int argc, char* argv[])
1070
1075
//----------------------------------------------------------------------------------
1071
1076
// Module Functions Definition
1072
1077
//----------------------------------------------------------------------------------
1073
-
1074
1078
// Show command line usage info
1075
1079
static void ShowCommandLineInfo (void )
1076
1080
{
1077
1081
printf ("\n//////////////////////////////////////////////////////////////////////////////////\n" );
1078
1082
printf ("// //\n" );
1079
- printf ("// raylib API parser //\n" );
1083
+ printf ("// rlparser - raylib header API parser //\n" );
1080
1084
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" );
1082
1086
printf ("// //\n" );
1083
1087
printf ("// Copyright (c) 2021-2025 Ramon Santamaria (@raysan5) //\n" );
1084
1088
printf ("// //\n" );
1085
1089
printf ("//////////////////////////////////////////////////////////////////////////////////\n\n" );
1086
1090
1087
1091
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" );
1089
1093
1090
1094
printf ("\nOPTIONS:\n\n" );
1091
1095
printf (" -h, --help : Show tool version and command line usage help\n\n" );
@@ -1102,11 +1106,11 @@ static void ShowCommandLineInfo(void)
1102
1106
printf (" NOTE: If not specified, the full input file is parsed.\n\n" );
1103
1107
1104
1108
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" );
1106
1110
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" );
1108
1112
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" );
1110
1114
printf (" Process <raymath.h> to generate <raymath_data.info> as XML text data\n\n" );
1111
1115
}
1112
1116
0 commit comments