cloud-custodian / cel-python

Pure Python implementation of the Common Expression Language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DumpAST.display fails for empty array literal

typeness opened this issue · comments

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