This commit is contained in:
Kagura 2024-06-19 21:05:38 +08:00
parent 3ee6675e72
commit 64168cf050

View file

@ -19,8 +19,8 @@ class AnalyzeTable {
""".trimIndent()
)
constructor(lang: String, _s: String? = null) {
start = _s ?: lang.trim()[0].toString()
constructor(lang: String, startSym: String? = null) {
start = startSym ?: lang.trim()[0].toString()
val newLang = if ("::=" in lang) { // 换成一个符号方便
lang.replace("::=", "->")