acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Document Title",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 16
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 16
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "dlist",
      "type": "block",
      "items": [
        {
          "term": [
            {
              "name": "text",
              "type": "string",
              "value": "term",
              "location": [
                {
                  "line": 3,
                  "col": 1
                },
                {
                  "line": 3,
                  "col": 4
                }
              ]
            }
          ],
          "delimiter": "::",
          "principal_text": [
            {
              "name": "text",
              "type": "string",
              "value": "This is a definition.",
              "location": [
                {
                  "line": 3,
                  "col": 8
                },
                {
                  "line": 3,
                  "col": 28
                }
              ]
            }
          ],
          "description": [],
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 29
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 3,
          "col": 29
        }
      ]
    },
    {
      "name": "listing",
      "type": "block",
      "form": "delimited",
      "delimiter": "----",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "This is NOT a setext underline - it's a listing block delimiter.",
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 64
            }
          ]
        }
      ],
      "location": [
        {
          "line": 4,
          "col": 1
        },
        {
          "line": 6,
          "col": 4
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "real title",
          "location": [
            {
              "line": 8,
              "col": 1
            },
            {
              "line": 8,
              "col": 10
            }
          ]
        }
      ],
      "location": [
        {
          "line": 8,
          "col": 1
        },
        {
          "line": 8,
          "col": 10
        }
      ]
    },
    {
      "name": "break",
      "type": "block",
      "variant": "thematic",
      "location": [
        {
          "line": 9,
          "col": 1
        },
        {
          "line": 9,
          "col": 3
        }
      ]
    },
    {
      "name": "break",
      "type": "block",
      "variant": "thematic",
      "location": [
        {
          "line": 9,
          "col": 4
        },
        {
          "line": 9,
          "col": 6
        }
      ]
    },
    {
      "name": "break",
      "type": "block",
      "variant": "thematic",
      "location": [
        {
          "line": 9,
          "col": 7
        },
        {
          "line": 9,
          "col": 9
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "-",
          "location": [
            {
              "line": 9,
              "col": 10
            },
            {
              "line": 9,
              "col": 10
            }
          ]
        }
      ],
      "location": [
        {
          "line": 9,
          "col": 10
        },
        {
          "line": 9,
          "col": 10
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Paragraph under the setext section.",
          "location": [
            {
              "line": 11,
              "col": 1
            },
            {
              "line": 11,
              "col": 35
            }
          ]
        }
      ],
      "location": [
        {
          "line": 11,
          "col": 1
        },
        {
          "line": 11,
          "col": 35
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 11,
      "col": 35
    }
  ]
}