cel-python icon indicating copy to clipboard operation
cel-python copied to clipboard

DumpAST.display fails for empty array literal

Open typeness opened this issue 3 years ago • 0 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

typeness avatar Apr 01 '22 10:04 typeness