pine-parser 0.2.1

Parser for Pine Script.
Documentation
[
  {
    "VarDecl": {
      "name": "x",
      "type_annotation": null,
      "initializer": {
        "Literal": {
          "Int": 5
        }
      },
      "var_kind": "Var"
    }
  },
  {
    "VarDecl": {
      "name": "result",
      "type_annotation": "string",
      "initializer": {
        "IfExpr": {
          "condition": {
            "Binary": {
              "left": {
                "Variable": {
                  "name": "x"
                }
              },
              "op": "Greater",
              "right": {
                "Literal": {
                  "Int": 0
                }
              }
            }
          },
          "then_expr": {
            "Literal": {
              "String": "positive"
            }
          },
          "else_if_branches": [],
          "else_expr": {
            "Literal": {
              "String": "non-positive"
            }
          }
        }
      }
    }
  }
]