pine-parser 0.1.0

Parser for Pine Script.
Documentation
[
  {
    "VarDecl": {
      "name": "x",
      "type_annotation": null,
      "initializer": {
        "Call": {
          "callee": {
            "Variable": "f"
          },
          "args": [
            {
              "Named": {
                "name": "a",
                "value": {
                  "Literal": {
                    "Int": 1
                  }
                }
              }
            },
            {
              "Named": {
                "name": "b",
                "value": {
                  "Ternary": {
                    "condition": {
                      "Variable": "cond"
                    },
                    "then_expr": {
                      "Literal": {
                        "Int": 1
                      }
                    },
                    "else_expr": {
                      "Literal": {
                        "Int": 2
                      }
                    }
                  }
                }
              }
            },
            {
              "Named": {
                "name": "c",
                "value": {
                  "Literal": {
                    "Int": 3
                  }
                }
              }
            }
          ],
          "id": 1
        }
      }
    }
  },
  {
    "VarDecl": {
      "name": "y",
      "type_annotation": null,
      "initializer": {
        "Literal": {
          "Int": 1
        }
      }
    }
  }
]