pine-parser 0.2.2

Parser for Pine Script.
Documentation
[
  {
    "Expression": {
      "Binary": {
        "left": {
          "Variable": {
            "name": "close"
          }
        },
        "op": "Greater",
        "right": {
          "Variable": {
            "name": "open"
          }
        }
      }
    }
  },
  {
    "Expression": {
      "Binary": {
        "left": {
          "Variable": {
            "name": "rsi"
          }
        },
        "op": "Less",
        "right": {
          "Literal": {
            "Int": 30
          }
        }
      }
    }
  },
  {
    "Expression": {
      "Binary": {
        "left": {
          "Variable": {
            "name": "x"
          }
        },
        "op": "Eq",
        "right": {
          "Literal": {
            "Int": 5
          }
        }
      }
    }
  },
  {
    "Expression": {
      "Binary": {
        "left": {
          "Index": {
            "expr": {
              "Variable": {
                "name": "close"
              }
            },
            "index": {
              "Literal": {
                "Int": 1
              }
            },
            "id": 1
          }
        },
        "op": "Greater",
        "right": {
          "Index": {
            "expr": {
              "Variable": {
                "name": "close"
              }
            },
            "index": {
              "Literal": {
                "Int": 2
              }
            },
            "id": 2
          }
        }
      }
    }
  }
]