diff options
Diffstat (limited to 'src/runMain/kotlin/Loader.kt')
-rw-r--r-- | src/runMain/kotlin/Loader.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/runMain/kotlin/Loader.kt b/src/runMain/kotlin/Loader.kt index 3aef50a..13e1157 100644 --- a/src/runMain/kotlin/Loader.kt +++ b/src/runMain/kotlin/Loader.kt @@ -4,11 +4,17 @@ import platform.posix.* class Loader(path: String) { private val inputString = read(path) - // TODO: Add preprocessor managing imports and comments + /** + * Preprocesses the plain source code + * TODO: Add preprocessor managing imports and comments + */ fun preprocess(): String { return inputString.replace("\n", "") } + /** + * Reads a file via the [path] into a string representation + */ private fun read(path: String): String { setlocale(LC_CTYPE, "en_US.UTF-8") |