pine-parser 0.1.0

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