acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Inline Anchor Location Test",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 29
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 29
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Section One",
          "location": [
            {
              "line": 3,
              "col": 4
            },
            {
              "line": 3,
              "col": 14
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "This paragraph has ",
              "location": [
                {
                  "line": 5,
                  "col": 1
                },
                {
                  "line": 5,
                  "col": 19
                }
              ]
            },
            {
              "name": "anchor",
              "type": "inline",
              "id": "my-anchor",
              "location": [
                {
                  "line": 5,
                  "col": 20
                },
                {
                  "line": 5,
                  "col": 32
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": "an inline anchor in the middle.",
              "location": [
                {
                  "line": 5,
                  "col": 33
                },
                {
                  "line": 5,
                  "col": 63
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 63
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 5,
          "col": 63
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Section Two",
          "location": [
            {
              "line": 7,
              "col": 4
            },
            {
              "line": 7,
              "col": 14
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Another paragraph with ",
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 9,
                  "col": 23
                }
              ]
            },
            {
              "name": "anchor",
              "type": "inline",
              "id": "second-anchor",
              "xreflabel": "Custom Label",
              "location": [
                {
                  "line": 9,
                  "col": 24
                },
                {
                  "line": 9,
                  "col": 53
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": "a labeled anchor.",
              "location": [
                {
                  "line": 9,
                  "col": 54
                },
                {
                  "line": 9,
                  "col": 70
                }
              ]
            }
          ],
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 9,
              "col": 70
            }
          ]
        }
      ],
      "location": [
        {
          "line": 7,
          "col": 1
        },
        {
          "line": 9,
          "col": 70
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 9,
      "col": 70
    }
  ]
}