arr-ai / arrai

The ultimate data engine.
http://arr.ai
Apache License 2.0
20 stars 15 forks source link

arrai grammar does not allow conditional accessor syntax with var `.` #540

Open nofun97 opened 4 years ago

nofun97 commented 4 years ago

Description

The grammar does not allow .attribute?:expr

Expected behavior

return .attribute if exist, else return expr

Actual behavior

Syntax error unconsumed input.

Your Environment

$ arrai info
Version    : DIRTY-v0.110.0
Git commit : bcebc1f328a9e0c4566a92ff510c577e3d243668
Date       : 2020-08-05T04:28:19Z
OS/arch    : darwin/amd64
Go version : go1.14.4 darwin/amd64