diff options
Diffstat (limited to 'tools/mhmake/makelex.bat')
-rw-r--r-- | tools/mhmake/makelex.bat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat new file mode 100644 index 000000000..4d1b24b99 --- /dev/null +++ b/tools/mhmake/makelex.bat @@ -0,0 +1,16 @@ +@echo off
+setlocal
+if not exist 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
+
+move %file% %tempfile%
+echo #include "stdafx.h" > %file%
+type %tempfile% >> %file%
+del /q %tempfile%
+
+endlocal
+
|