From 39ac71d76d362e4e492051a1ef7ea39447bb5742 Mon Sep 17 00:00:00 2001 From: ZhigalskiiIvan <671342i@gmail.com> Date: Thu, 23 Mar 2023 21:15:28 +0300 Subject: [PATCH] create classes skeleton --- src/main/kotlin/Main.kt | 63 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index f2a59b6..f48cd29 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -1,7 +1,60 @@ -fun main(args: Array) { - println("Hello World!") +object StatisticBuilder { - // Try adding program arguments via Run/Debug configuration. - // Learn more about running applications: https://www.jetbrains.com/help/idea/running-applications.html. - println("Program arguments: ${args.joinToString()}") + fun buildGraphic() {} + + fun printStatisticsInConsole() {} + +} + + +object TextReader { + fun readFromConsole(): String { + TODO() + } +} + + +class TextData() { + private val textsList = mutableListOf() + + fun addNewText(textName: String, content: String) {} + + object TextAnalyzer { + private val DELIMITERS = listOf('.', '!', '?') + + fun returnListOfSentences(text: Text): List { TODO() } + + } + + class Text(private val name: String, private val sentencesCount: Int) { + + val sentencesList = listOf() + + fun getSentencesCount() {} + + class Sentence(val words_count: Int) {} + + } + +} + + +object CommandCenter { + + enum class Commands(val commandName: String, val executingFun: (Any) -> Any) { + Exit("exit", TODO()), + Add("add", TODO()) + } + + fun readCommandFromConsole() {} + + fun executeCommand() {} + +} + + +fun main(args: Array) { + + mainCycle@ while (true) { + } } \ No newline at end of file