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

DumpAST.display fails for empty array literal #35

Open
typeness opened this issue Apr 1, 2022 · 0 comments
Open

DumpAST.display fails for empty array literal #35

typeness opened this issue Apr 1, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@typeness
Copy link

typeness commented Apr 1, 2022

Reproduce using the following code

if __name__ == '__main__':
    cel = "[]"
    tree = CELParser().parse(cel)
    print(DumpAST.display(tree))

The code fails with exception

return d.stack[0]
IndexError: list index out of range
@slott56 slott56 added the bug Something isn't working label Apr 1, 2022
@slott56 slott56 added this to the 0.3 release milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants