if(banner) {
printf("DataWorks version %s %s %s\n", dataworks_get_version(), dataworks_get_compile_date(), dataworks_get_platform());
printf("Using Yacc: %s\n", dataworks_get_yacc_version());
+ printf(" Lex: %s\n", dataworks_get_lex_version());
if(dataworks_get_endian() == 'L') {
printf("This system is little-endian.\n");
} else {
[ \t\v]* {
return (SPACE);
}
+
+%%
+
+#if defined(FLEX_SCANNER)
+#define XSTR(x) #x
+#define STR(x) XSTR(x)
+const char* lexver = "Flex " STR(YY_FLEX_MAJOR_VERSION) "." STR(YY_FLEX_MINOR_VERSION) "." STR(YY_FLEX_SUBMINOR_VERSION);
+#else
+const char* lexver = "Unknown";
+#endif
#define XSTR(x) #x
#define STR(x) XSTR(x)
const char* yaccver = "Berkeley Yacc " STR(YYMAJOR) "." STR(YYMINOR);
+#else
+const char* yaccver = "Unknown";
#endif
PLATFORM_M " (" PLATFORM_P ")";
extern const char* yaccver;
+extern const char* lexver;
const char* dataworks_get_version(void) { return dataworks_version; }
const char* dataworks_get_yacc_version(void) { return yaccver; }
+const char* dataworks_get_lex_version(void) { return lexver; }
const char* dataworks_get_compile_date(void) { return dataworks_compile_date; }
const char* dataworks_get_platform(void) { return dataworks_platform; }
char dataworks_get_endian(void) {
*/
const char* dataworks_get_yacc_version(void);
+/**
+ * @~english
+ * @brief Get the version of Lex used by DataWorks
+ * @return Lex version of DataWorks
+ *
+ */
+const char* dataworks_get_lex_version(void);
+
/**
* @~english
* @brief Get the compilation date of DataWorks
echo "c:" >> dosbox.conf
echo "copy Client\*$(EXEC_SUFFIX) dw$(EXEC_SUFFIX)" >> dosbox.conf
echo "dw /NC /f op.txt /create db.dwf" >> dosbox.conf
+ echo "dw /NC /f op.txt db.dwf" >> dosbox.conf
echo "pause" >> dosbox.conf
echo "del db.dwf" >> dosbox.conf
echo "del dw.exe" >> dosbox.conf