Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
内部方法的KOTLIN ANTLR语法分析错误_Kotlin_Antlr_Antlr4_Grammar_Context Free Grammar - Fatal编程技术网

内部方法的KOTLIN ANTLR语法分析错误

内部方法的KOTLIN ANTLR语法分析错误,kotlin,antlr,antlr4,grammar,context-free-grammar,Kotlin,Antlr,Antlr4,Grammar,Context Free Grammar,获取以下Kotlin代码的分析错误。 我使用的是Kotlin语法表ANTLRv4() 错误详细信息: line 12:12 no viable alternative at input '(object:DefaultCompletableObserver(){overridefunonComplete(){super.onComplete()unlock()}' line 9:21 no viable alternative at input 'overridefun' line 9:38 m

获取以下Kotlin代码的分析错误。 我使用的是Kotlin语法表ANTLRv4()

错误详细信息:

line 12:12 no viable alternative at input '(object:DefaultCompletableObserver(){overridefunonComplete(){super.onComplete()unlock()}'
line 9:21 no viable alternative at input 'overridefun'
line 9:38 mismatched input '{' expecting {',', RPAREN}
line 14:12 mismatched input 'override' expecting {<EOF>, NL, ';'}
第12:12行输入时没有可行的替代方案'(对象:DefaultCompletableObserver(){overridefunonComplete(){super.onComplete()unlock()}'
第9行:21在输入“overridefun”处没有可行的替代方案
第9行:38不匹配的输入“{”应为{,',RPAREN}
第14:12行不匹配的输入“覆盖”应为{,NL,;'}
为了支持这一点,需要对上述语法进行哪些更改

line 12:12 no viable alternative at input '(object:DefaultCompletableObserver(){overridefunonComplete(){super.onComplete()unlock()}'
line 9:21 no viable alternative at input 'overridefun'
line 9:38 mismatched input '{' expecting {',', RPAREN}
line 14:12 mismatched input 'override' expecting {<EOF>, NL, ';'}