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

解析时in 缺失 && 切片语法优化 #57

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

tanyanliang110
Copy link
Contributor

@tanyanliang110 tanyanliang110 commented Jan 7, 2025

问题#56

$\qquad$测试’add_key("t5", x in function(tags=false))‘发现in语法解析没有问题,是函数调用的问题
$\qquad$发现in语法解析时缺省了in 如‘x in [1,2,3]' 解析为 x [1,2,3]
原因:newInExpr函数结构体没有写Op,加上就好了

切片语法

$\qquad$支持各种调用作为obj和索引,包括但不限于函数调用,表达式调用。
$\qquad$要求解析到最后obj必须为字符串、数组或切片,索引必须为整数。

@guance-review-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tanyanliang110
Once this PR has been reviewed and has the lgtm label, please assign coanor for approval by writing /assign @coanor in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for phenomenal-palmier-a1e093 failed.

Name Link
🔨 Latest commit 9dffab6
🔍 Latest deploy log https://app.netlify.com/sites/phenomenal-palmier-a1e093/deploys/677e68d9bbe9880008b08cfd

@guance-review-bot guance-review-bot bot added size/L and removed size/S labels Jan 8, 2025
@tanyanliang110 tanyanliang110 changed the title 解析时in 缺失 解析时in 缺失 && 切片语法优化 Jan 8, 2025
@vircoys vircoys merged commit 6cc834b into GuanceCloud:main Jan 28, 2025
1 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants