Open dadadong opened 6 months ago
I use the following code to solve the thread-safety problem and do not know if there is a risk,any help me :)
private class OC_Parsor: ObjectiveCParser {
private let _cache = PredictionContextCache()
override init(_ input: TokenStream) throws {
RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION)
try super.init(input)
_interp = ParserATNSimulator(self, ObjectiveCParser._ATN, ObjectiveCParser._decisionToDFA, _cache)
}
}
I am using the swift version of ANTLR4.13.1 to parse the objc code file, and I always encounter a crash. My code structure is as follows:
Crash stack: