-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
lark.js line 3472
return this.parser.parse_interactive({
unknown_param_0: text,
start: start,
});
ParsingFrontend.parse_interactive
receives two params: text
and start
, but it gives an object with unknown_param_0
. So the lexer cannot read the correct text.
When I write the code like this:
const parser = get_parser();
let p = parser.parser_interactive(text);
p.exhaust_lexer();
it cannot run correctly. But there is no error in python version of lark if i write the similar code.
Maybe its a programming language translation error. I found three unknown_param_0
in lark.js source code. Hope you can fix it. I'm trying to use lark to finish my course project. Thank you.
ParsingFrontend.parse_interactive
接受两个参数: text
和start
,但是却传给了一个包含unknown_param_0
字段的对象。因此lexer无法读取到正确的文本。
上方的代码不能正确运行。但是在Python版本的lark中没有问题。
可能是一个计算机语言翻译出现的问题。我在lark.js的源代码中发现了三处unknown_param_0
。希望你们可以修复它。我正在试着用lark完成我的课程项目。谢谢。
Metadata
Metadata
Assignees
Labels
No labels