Created
November 12, 2018 21:11
-
-
Save vznvzn/45f8b7b30352f6bcadeeb9cc734c6053 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
if "%1%" == "" ( | |
echo specify [n] | |
exit /b | |
) | |
set n=%1% | |
set /a n2 = n - 1 | |
set f3="fstlen%n%b.fst" | |
if exist %f3% exit /b | |
set f="fstlen%n%.fst" | |
set f2="fstlen%n2%.fst" | |
fstlen %n% | |
fstlen %n2% | |
fstcompile --acceptor=true fstlen%n%.txt %f% | |
fstcompile --acceptor=true fstlen%n2%.txt %f2% | |
call fstmin %f2% | |
fstdifference %f% %f2% %f3% | |
call fstmin %f3% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment