|
|
@ -323,10 +323,7 @@ class RuleAnalyzer(data: String, code: Boolean = false) { |
|
|
|
val next = if (queue[pos] == '[') ']' else ')' //平衡组末尾字符 |
|
|
|
val next = if (queue[pos] == '[') ']' else ')' //平衡组末尾字符 |
|
|
|
|
|
|
|
|
|
|
|
if (!chompBalanced(queue[pos], next)) throw Error( |
|
|
|
if (!chompBalanced(queue[pos], next)) throw Error( |
|
|
|
queue.substring( |
|
|
|
queue.substring(0, start) + "后未平衡" |
|
|
|
0, |
|
|
|
|
|
|
|
start |
|
|
|
|
|
|
|
) + "后未平衡" |
|
|
|
|
|
|
|
) //拉出一个筛选器,不平衡则报错 |
|
|
|
) //拉出一个筛选器,不平衡则报错 |
|
|
|
|
|
|
|
|
|
|
|
} while (end > pos) |
|
|
|
} while (end > pos) |
|
|
|