add a function to convert from kebab case (expectation for file names) to pascal case (convention used for structures)

This commit is contained in:
2025-08-26 15:17:10 +01:00
parent 8e4f2f4820
commit 060e3779f5
3 changed files with 24 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ struct
SOME line => loadIO (io, str ^ line)
| NONE => str
fun convertFile fullPath =
fun convertFile (fullPath, filename) =
let
val io = TextIO.openIn fullPath
val text = loadIO (io, "")
@@ -57,7 +57,7 @@ struct
()
else if endsWithDsc path then
(* is a file ending with .dsc extension *)
convertFile folderPath
convertFile (folderPath, path)
else
(* is a file but doesn't end with .dsc, so ignore *)
()