full_moon 0.3.0

A lossless Lua 5.1 parser
Documentation
{
  "stmts": [
    {
      "NumericFor": {
        "index_variable": {
          "start_position": {
            "bytes": 4,
            "character": 5,
            "line": 1
          },
          "end_position": {
            "bytes": 9,
            "character": 10,
            "line": 1
          },
          "token_type": {
            "type": "Identifier",
            "identifier": "index"
          }
        },
        "start": {
          "value": {
            "Number": {
              "start_position": {
                "bytes": 12,
                "character": 13,
                "line": 1
              },
              "end_position": {
                "bytes": 13,
                "character": 14,
                "line": 1
              },
              "token_type": {
                "type": "Number",
                "text": "1"
              }
            }
          },
          "binop": null
        },
        "end": {
          "value": {
            "Number": {
              "start_position": {
                "bytes": 15,
                "character": 16,
                "line": 1
              },
              "end_position": {
                "bytes": 17,
                "character": 18,
                "line": 1
              },
              "token_type": {
                "type": "Number",
                "text": "10"
              }
            }
          },
          "binop": null
        },
        "step": null,
        "block": {
          "stmts": [
            {
              "FunctionCall": {
                "prefix": {
                  "Name": {
                    "start_position": {
                      "bytes": 21,
                      "character": 22,
                      "line": 1
                    },
                    "end_position": {
                      "bytes": 25,
                      "character": 26,
                      "line": 1
                    },
                    "token_type": {
                      "type": "Identifier",
                      "identifier": "call"
                    }
                  }
                },
                "suffixes": [
                  {
                    "Call": {
                      "AnonymousCall": {
                        "Parentheses": [
                          {
                            "value": {
                              "Var": {
                                "Name": {
                                  "start_position": {
                                    "bytes": 26,
                                    "character": 27,
                                    "line": 1
                                  },
                                  "end_position": {
                                    "bytes": 31,
                                    "character": 32,
                                    "line": 1
                                  },
                                  "token_type": {
                                    "type": "Identifier",
                                    "identifier": "index"
                                  }
                                }
                              }
                            },
                            "binop": null
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    },
    {
      "NumericFor": {
        "index_variable": {
          "start_position": {
            "bytes": 41,
            "character": 5,
            "line": 2
          },
          "end_position": {
            "bytes": 42,
            "character": 6,
            "line": 2
          },
          "token_type": {
            "type": "Identifier",
            "identifier": "_"
          }
        },
        "start": {
          "value": {
            "Var": {
              "Name": {
                "start_position": {
                  "bytes": 45,
                  "character": 9,
                  "line": 2
                },
                "end_position": {
                  "bytes": 50,
                  "character": 14,
                  "line": 2
                },
                "token_type": {
                  "type": "Identifier",
                  "identifier": "start"
                }
              }
            }
          },
          "binop": null
        },
        "end": {
          "value": {
            "Var": {
              "Name": {
                "start_position": {
                  "bytes": 52,
                  "character": 16,
                  "line": 2
                },
                "end_position": {
                  "bytes": 57,
                  "character": 21,
                  "line": 2
                },
                "token_type": {
                  "type": "Identifier",
                  "identifier": "final"
                }
              }
            }
          },
          "binop": null
        },
        "step": null,
        "block": {
          "stmts": []
        }
      }
    },
    {
      "NumericFor": {
        "index_variable": {
          "start_position": {
            "bytes": 69,
            "character": 5,
            "line": 3
          },
          "end_position": {
            "bytes": 70,
            "character": 6,
            "line": 3
          },
          "token_type": {
            "type": "Identifier",
            "identifier": "_"
          }
        },
        "start": {
          "value": {
            "Number": {
              "start_position": {
                "bytes": 73,
                "character": 9,
                "line": 3
              },
              "end_position": {
                "bytes": 74,
                "character": 10,
                "line": 3
              },
              "token_type": {
                "type": "Number",
                "text": "1"
              }
            }
          },
          "binop": null
        },
        "end": {
          "value": {
            "Number": {
              "start_position": {
                "bytes": 76,
                "character": 12,
                "line": 3
              },
              "end_position": {
                "bytes": 78,
                "character": 14,
                "line": 3
              },
              "token_type": {
                "type": "Number",
                "text": "10"
              }
            }
          },
          "binop": null
        },
        "step": {
          "value": {
            "Number": {
              "start_position": {
                "bytes": 80,
                "character": 16,
                "line": 3
              },
              "end_position": {
                "bytes": 81,
                "character": 17,
                "line": 3
              },
              "token_type": {
                "type": "Number",
                "text": "2"
              }
            }
          },
          "binop": null
        },
        "block": {
          "stmts": []
        }
      }
    }
  ]
}