format files related to parser

This commit is contained in:
2025-07-12 07:19:34 +01:00
parent b58100ca7e
commit 750246dcfd
5 changed files with 41 additions and 45 deletions

View File

@@ -5,20 +5,17 @@ struct
val final = 2
fun makeStart i =
let
val chr = Char.chr i
in
if Char.isDigit chr then final else dead
let val chr = Char.chr i
in if Char.isDigit chr then final else dead
end
val deadTable = Vector.tabulate (255, fn _ => dead)
val startTable = Vector.tabulate (255, makeStart)
val startTable = Vector.tabulate (255, makeStart)
val finalTable = startTable
val tables = #[deadTable, startTable, finalTable]
fun isFinal state =
state = final
fun isFinal state = state = final
fun next (state, chr) =
let