acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Simple Test",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 13
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 13
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "This has a footnote",
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 19
            }
          ]
        },
        {
          "name": "footnote",
          "type": "inline",
          "id": null,
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Simple footnote content",
              "location": [
                {
                  "line": 3,
                  "col": 30
                },
                {
                  "line": 3,
                  "col": 52
                }
              ]
            }
          ],
          "location": [
            {
              "line": 3,
              "col": 20
            },
            {
              "line": 3,
              "col": 53
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": ".",
          "location": [
            {
              "line": 3,
              "col": 54
            },
            {
              "line": 3,
              "col": 54
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 3,
          "col": 54
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Another foo ",
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 12
            }
          ]
        },
        {
          "name": "footnote",
          "type": "inline",
          "id": "naff",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "A ",
              "location": [
                {
                  "line": 5,
                  "col": 27
                },
                {
                  "line": 5,
                  "col": 28
                }
              ]
            },
            {
              "name": "span",
              "type": "inline",
              "variant": "strong",
              "form": "constrained",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "naff",
                  "location": [
                    {
                      "line": 5,
                      "col": 30
                    },
                    {
                      "line": 5,
                      "col": 33
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 5,
                  "col": 29
                },
                {
                  "line": 5,
                  "col": 34
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": " footnote",
              "location": [
                {
                  "line": 5,
                  "col": 35
                },
                {
                  "line": 5,
                  "col": 43
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 13
            },
            {
              "line": 5,
              "col": 44
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": ".",
          "location": [
            {
              "line": 5,
              "col": 45
            },
            {
              "line": 5,
              "col": 45
            }
          ]
        }
      ],
      "location": [
        {
          "line": 5,
          "col": 1
        },
        {
          "line": 5,
          "col": 45
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "This references the same naff ",
          "location": [
            {
              "line": 7,
              "col": 1
            },
            {
              "line": 7,
              "col": 30
            }
          ]
        },
        {
          "name": "footnote",
          "type": "inline",
          "id": "naff",
          "inlines": [],
          "location": [
            {
              "line": 7,
              "col": 31
            },
            {
              "line": 7,
              "col": 45
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": ".",
          "location": [
            {
              "line": 7,
              "col": 46
            },
            {
              "line": 7,
              "col": 46
            }
          ]
        }
      ],
      "location": [
        {
          "line": 7,
          "col": 1
        },
        {
          "line": 7,
          "col": 46
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 7,
      "col": 46
    }
  ]
}