killme2008 / killme2008/aviatorscript

表达式执行结果解释

Open
#686 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.2k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

```
NAME_EQ(passengerName,aiName)
&&
(
(
flightWay=='S'
&& aiCountry==GET_PROP(LAST_SEQUENCE(flights),'arrivalCountryCode')
&& (
GET_YEAR(aiEnrollmentDate)>=GET_YEAR(GET_PROP(FIRST_SEQUENCE(flights),'departureTime')) ||
aiBeginAcademicYear>=GET_YEAR(GET_PROP(FIRST_SEQUENCE(flights),'departureTime'))
)
)
||
(
flightWay=='S'
&&
aiCountry==GET_PROP(LAST_SEQUENCE(flights),'arrivalCountryCode') &&
DATE_GE(aiEnrollmentDate,GET_PROP(LAST_SEQUENCE(flights),'arrivalTime'),false)
)
||
(
flightWay=='D' &&
aiCountry==GET_PROP(FIRST_SEGMENT_LAST_SEQUENCE(flights),'arrivalCountryCode') &&
(
GET_YEAR(aiEnrollmentDate)>=GET_YEAR(GET_PROP(FIRST_SEQUENCE(flights),'departureTime')) ||
aiBeginAcademicYear>=GET_YEAR(GET_PROP(FIRST_SEQUENCE(flights),'departureTime'))
)
)
||
(
flightWay=='D' &&
aiCountry==GET_PROP(FIRST_SEGMENT_LAST_SEQUENCE(flights),'arrivalCountryCode') &&
DATE_GE(aiEnrollmentDate,GET_PROP(FIRST_SEGMENT_LAST_SEQUENCE(flights),'arrivalTime'),false)
)
)
```
我有一个比较复杂 的 表达式,目前只能拿到执行结果 True/False , 除了 True/False ,如何才能拿到是哪些 表达式执行失败的

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides only a complex expression and does not name a source file, test, or evaluator entry point. Start by locating the API that currently returns the boolean result, then clarify how failed subexpressions should be represented and verify the expected behavior with a test covering the nested && and || expression.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.