aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makelex.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/makelex.bat')
-rw-r--r--tools/mhmake/makelex.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat
new file mode 100644
index 000000000..967810aad
--- /dev/null
+++ b/tools/mhmake/makelex.bat
@@ -0,0 +1,21 @@
+setlocal
+if not isdir src\parser mkdir src\parser
+
+flex++ -8 -Ssrc\flexskel.cc -Hsrc\flexskel.h -hsrc\parser\mhmakelexer.h -osrc\parser\mhmakelexer.cpp src\mhmakelexer.l
+
+set file=src\parser\mhmakelexer.cpp
+set tempfile=src\parser\temp12345.5678
+GOSUB AddStdAfx
+
+goto END
+
+:AddStdAfx
+rename /q %file %tempfile
+echo #include "StdAfx.h" > %file
+type %tempfile >> %file
+del /q %tempfile
+RETURN
+
+:END
+endlocal
+