lark-parser / lark

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
MIT License
4.62k stars 395 forks source link

lark.exceptions.UnexpectedCharacters: No terminal matches ',' in the current parser context, at line 1 col 8 #1383

Closed CanIbeyourdog closed 3 months ago

CanIbeyourdog commented 5 months ago

I get the following error when I run the self-query function in langchain,which relis on lark.

1.lark.exceptions.UnexpectedCharacters: No terminal matches ',' in the current parser context, at line 1 col 8

eq(year, '1928年') and eq(day, '1月') ^ Expected one of:

Previous tokens: Token('CNAME', 'year')

2‘lark.exceptions.UnexpectedToken: Unexpected token Token('COMMA', ',') at line 1, column 8. Expected one of:

MegaIng commented 5 months ago

And have you already reported this with langchain? Why do you think this is a lark bug?