@echo off

javac TextReader.java

cl /nologo gen_punct_only.cpp
cl /nologo gen_bad_voc.cpp
cl /nologo gen_small_words.cpp
cl /EHsc /nologo gen_long_words.cpp

copy 01.t 01 >nul
copy 02.t 02 >nul
copy 03.t 03 >nul
copy 04.t 04 >nul
copy 05.t 05 >nul
copy 06.t 06 >nul
copy 07.t 07 >nul

java TextReader text01.txt 08 -OK
java TextReader text01.txt 09 -EXTRA
java TextReader text01.txt 10 -LACK

gen_long_words 7857817181 > 11
gen_long_words 7893467121 > 12

gen_punct_only > 13
gen_bad_voc > 14

gen_small_words > 15

call tall mb
