full_moon 0.3.0

A lossless Lua 5.1 parser
Documentation
{
  "stmts": [
    {
      "LocalAssignment": {
        "name_list": [
          {
            "start_position": {
              "bytes": 6,
              "character": 7,
              "line": 1
            },
            "end_position": {
              "bytes": 7,
              "character": 8,
              "line": 1
            },
            "token_type": {
              "type": "Identifier",
              "identifier": "x"
            }
          }
        ],
        "expr_list": [
          {
            "value": {
              "TableConstructor": {
                "fields": [
                  [
                    {
                      "NoKey": {
                        "value": {
                          "Number": {
                            "start_position": {
                              "bytes": 11,
                              "character": 12,
                              "line": 1
                            },
                            "end_position": {
                              "bytes": 12,
                              "character": 13,
                              "line": 1
                            },
                            "token_type": {
                              "type": "Number",
                              "text": "1"
                            }
                          }
                        },
                        "binop": null
                      }
                    },
                    {
                      "start_position": {
                        "bytes": 12,
                        "character": 13,
                        "line": 1
                      },
                      "end_position": {
                        "bytes": 13,
                        "character": 14,
                        "line": 1
                      },
                      "token_type": {
                        "type": "Symbol",
                        "symbol": ","
                      }
                    }
                  ],
                  [
                    {
                      "NoKey": {
                        "value": {
                          "Number": {
                            "start_position": {
                              "bytes": 14,
                              "character": 15,
                              "line": 1
                            },
                            "end_position": {
                              "bytes": 15,
                              "character": 16,
                              "line": 1
                            },
                            "token_type": {
                              "type": "Number",
                              "text": "2"
                            }
                          }
                        },
                        "binop": null
                      }
                    },
                    {
                      "start_position": {
                        "bytes": 15,
                        "character": 16,
                        "line": 1
                      },
                      "end_position": {
                        "bytes": 16,
                        "character": 17,
                        "line": 1
                      },
                      "token_type": {
                        "type": "Symbol",
                        "symbol": ","
                      }
                    }
                  ],
                  [
                    {
                      "NoKey": {
                        "value": {
                          "Number": {
                            "start_position": {
                              "bytes": 17,
                              "character": 18,
                              "line": 1
                            },
                            "end_position": {
                              "bytes": 18,
                              "character": 19,
                              "line": 1
                            },
                            "token_type": {
                              "type": "Number",
                              "text": "3"
                            }
                          }
                        },
                        "binop": null
                      }
                    },
                    null
                  ]
                ]
              }
            },
            "binop": null
          }
        ]
      }
    }
  ]
}