pine-parser 0.2.1

Parser for Pine Script.
Documentation
[
  {
    "VarDecl": {
      "name": "f",
      "type_annotation": null,
      "initializer": {
        "Function": {
          "params": [
            {
              "type_qualifier": "Const",
              "type_annotation": "int",
              "name": "x"
            },
            {
              "type_annotation": "int",
              "name": "y"
            },
            {
              "type_qualifier": "Const",
              "type_annotation": "string",
              "name": "z"
            }
          ],
          "body": [
            {
              "Expression": {
                "Binary": {
                  "left": {
                    "Variable": {
                      "name": "x"
                    }
                  },
                  "op": "Add",
                  "right": {
                    "Variable": {
                      "name": "y"
                    }
                  }
                }
              }
            }
          ]
        }
      }
    }
  }
]