pine-parser 0.2.2

Parser for Pine Script.
Documentation
[
  {
    "VarDecl": {
      "name": "result",
      "type_annotation": null,
      "initializer": {
        "Binary": {
          "left": {
            "Binary": {
              "left": {
                "Binary": {
                  "left": {
                    "Literal": {
                      "Int": 1
                    }
                  },
                  "op": "Add",
                  "right": {
                    "Literal": {
                      "Int": 2
                    }
                  }
                }
              },
              "op": "Add",
              "right": {
                "Literal": {
                  "Int": 3
                }
              }
            }
          },
          "op": "Add",
          "right": {
            "Literal": {
              "Int": 4
            }
          }
        }
      }
    }
  },
  {
    "VarDecl": {
      "name": "value",
      "type_annotation": null,
      "initializer": {
        "Binary": {
          "left": {
            "Binary": {
              "left": {
                "Binary": {
                  "left": {
                    "Binary": {
                      "left": {
                        "Literal": {
                          "Int": 10
                        }
                      },
                      "op": "Mul",
                      "right": {
                        "Variable": {
                          "name": "x"
                        }
                      }
                    }
                  },
                  "op": "Add",
                  "right": {
                    "Binary": {
                      "left": {
                        "Literal": {
                          "Int": 20
                        }
                      },
                      "op": "Mul",
                      "right": {
                        "Variable": {
                          "name": "y"
                        }
                      }
                    }
                  }
                }
              },
              "op": "Add",
              "right": {
                "Binary": {
                  "left": {
                    "Literal": {
                      "Int": 30
                    }
                  },
                  "op": "Mul",
                  "right": {
                    "Variable": {
                      "name": "z"
                    }
                  }
                }
              }
            }
          },
          "op": "Div",
          "right": {
            "Variable": {
              "name": "sum"
            }
          }
        }
      }
    }
  }
]