full_moon 0.3.0

A lossless Lua 5.1 parser
Documentation
{
  "stmts": [
    {
      "FunctionCall": {
        "prefix": {
          "Name": {
            "start_position": {
              "bytes": 0,
              "character": 1,
              "line": 1
            },
            "end_position": {
              "bytes": 4,
              "character": 5,
              "line": 1
            },
            "token_type": {
              "type": "Identifier",
              "identifier": "call"
            }
          }
        },
        "suffixes": [
          {
            "Call": {
              "AnonymousCall": {
                "Parentheses": [
                  {
                    "value": {
                      "String": {
                        "start_position": {
                          "bytes": 5,
                          "character": 6,
                          "line": 1
                        },
                        "end_position": {
                          "bytes": 13,
                          "character": 14,
                          "line": 1
                        },
                        "token_type": {
                          "type": "StringLiteral",
                          "literal": "double",
                          "quote_type": "Double"
                        }
                      }
                    },
                    "binop": null
                  }
                ]
              }
            }
          }
        ]
      }
    },
    {
      "FunctionCall": {
        "prefix": {
          "Name": {
            "start_position": {
              "bytes": 15,
              "character": 15,
              "line": 1
            },
            "end_position": {
              "bytes": 19,
              "character": 5,
              "line": 2
            },
            "token_type": {
              "type": "Identifier",
              "identifier": "call"
            }
          }
        },
        "suffixes": [
          {
            "Call": {
              "AnonymousCall": {
                "Parentheses": [
                  {
                    "value": {
                      "String": {
                        "start_position": {
                          "bytes": 20,
                          "character": 6,
                          "line": 2
                        },
                        "end_position": {
                          "bytes": 28,
                          "character": 14,
                          "line": 2
                        },
                        "token_type": {
                          "type": "StringLiteral",
                          "literal": "single",
                          "quote_type": "Single"
                        }
                      }
                    },
                    "binop": null
                  }
                ]
              }
            }
          }
        ]
      }
    }
  ]
}