Skip to content

Instantly share code, notes, and snippets.

@vznvzn
Created November 12, 2018 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vznvzn/45f8b7b30352f6bcadeeb9cc734c6053 to your computer and use it in GitHub Desktop.
Save vznvzn/45f8b7b30352f6bcadeeb9cc734c6053 to your computer and use it in GitHub Desktop.
@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