Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list相关的内置函数不支持context #6

Open
bcwk opened this issue Jun 14, 2024 · 0 comments
Open

list相关的内置函数不支持context #6

bcwk opened this issue Jun 14, 2024 · 0 comments

Comments

@bcwk
Copy link

bcwk commented Jun 14, 2024

list相关的函数(如:count,all,any)使用context时,lex无法识别:

例如:
print(parse_expression(expression='count(aaa_lst)', context={"aaa_lst": [1, 2, 3]}))
提示:
Expected one of:
* LSQB
Previous tokens: [Token('LPAR', '(')]

直接print(parse_expression(expression='count([1, 2, 3])'))就没问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant