pine-parser 0.1.0

Parser for Pine Script.
Documentation
[
  {
    "VarDecl": {
      "name": "lengthInput",
      "type_annotation": null,
      "initializer": {
        "Call": {
          "callee": {
            "MemberAccess": {
              "object": {
                "Variable": "input"
              },
              "member": "int"
            }
          },
          "args": [
            {
              "Positional": {
                "Literal": {
                  "Int": 10
                }
              }
            }
          ],
          "id": 1
        }
      },
      "var_kind": "Var"
    }
  },
  {
    "VarDecl": {
      "name": "stochastic",
      "type_annotation": null,
      "initializer": {
        "Call": {
          "callee": {
            "MemberAccess": {
              "object": {
                "Variable": "ta"
              },
              "member": "stoch"
            }
          },
          "args": [
            {
              "Positional": {
                "Variable": "close"
              }
            },
            {
              "Positional": {
                "Variable": "high"
              }
            },
            {
              "Positional": {
                "Variable": "low"
              }
            },
            {
              "Positional": {
                "Variable": "lengthInput"
              }
            }
          ],
          "id": 2
        }
      },
      "var_kind": "Var"
    }
  }
]