acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Raw Text Location Test",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 24
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 24
      }
    ]
  },
  "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 has ",
              "location": [
                {
                  "line": 5,
                  "col": 1
                },
                {
                  "line": 5,
                  "col": 10
                }
              ]
            },
            {
              "name": "raw",
              "type": "string",
              "value": "<b>raw HTML</b>",
              "location": [
                {
                  "line": 5,
                  "col": 16
                },
                {
                  "line": 5,
                  "col": 31
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": " in the middle of a sentence.",
              "location": [
                {
                  "line": 5,
                  "col": 32
                },
                {
                  "line": 5,
                  "col": 60
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 60
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 5,
          "col": 60
        }
      ]
    },
    {
      "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": "Triple plus ",
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 9,
                  "col": 13
                }
              ]
            },
            {
              "name": "raw",
              "type": "string",
              "value": "<em>also raw</em>",
              "location": [
                {
                  "line": 9,
                  "col": 16
                },
                {
                  "line": 9,
                  "col": 33
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": " produces raw text too.",
              "location": [
                {
                  "line": 9,
                  "col": 36
                },
                {
                  "line": 9,
                  "col": 58
                }
              ]
            }
          ],
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 9,
              "col": 58
            }
          ]
        }
      ],
      "location": [
        {
          "line": 7,
          "col": 1
        },
        {
          "line": 9,
          "col": 58
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 9,
      "col": 58
    }
  ]
}