From anonymous, 2 Months ago, written in Python.
Embed
  1. >>> print(ast.dump(ast.parse('my_var["key"]["subkey"]'), indent=2))
  2. Module(
  3.   body=[
  4.     Expr(
  5.       value=Subscript(
  6.         value=Subscript(
  7.           value=Name(id='my_var', ctx=Load()),
  8.           slice=Constant(value='key'),
  9.           ctx=Load()),
  10.         slice=Constant(value='subkey'),
  11.         ctx=Load()))],
  12.   type_ignores=[])