acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "blocks": [
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Basic callout list example:",
          "location": [
            {
              "line": 1,
              "col": 1
            },
            {
              "line": 1,
              "col": 27
            }
          ]
        }
      ],
      "location": [
        {
          "line": 1,
          "col": 1
        },
        {
          "line": 1,
          "col": 27
        }
      ]
    },
    {
      "name": "listing",
      "type": "block",
      "form": "delimited",
      "delimiter": "----",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Line one ",
          "location": [
            {
              "line": 4,
              "col": 1
            },
            {
              "line": 6,
              "col": 14
            }
          ]
        },
        {
          "name": "callout_reference",
          "type": "inline",
          "variant": "explicit",
          "number": 1,
          "location": [
            {
              "line": 4,
              "col": 1
            },
            {
              "line": 6,
              "col": 14
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "\nLine two ",
          "location": [
            {
              "line": 4,
              "col": 1
            },
            {
              "line": 6,
              "col": 14
            }
          ]
        },
        {
          "name": "callout_reference",
          "type": "inline",
          "variant": "explicit",
          "number": 2,
          "location": [
            {
              "line": 4,
              "col": 1
            },
            {
              "line": 6,
              "col": 14
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "\nLine three ",
          "location": [
            {
              "line": 4,
              "col": 1
            },
            {
              "line": 6,
              "col": 14
            }
          ]
        },
        {
          "name": "callout_reference",
          "type": "inline",
          "variant": "explicit",
          "number": 3,
          "location": [
            {
              "line": 4,
              "col": 1
            },
            {
              "line": 6,
              "col": 14
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 7,
          "col": 4
        }
      ]
    },
    {
      "name": "list",
      "type": "block",
      "variant": "callout",
      "items": [
        {
          "name": "listItem",
          "type": "block",
          "callout": {
            "name": "callout_reference",
            "type": "inline",
            "variant": "explicit",
            "number": 1,
            "location": [
              {
                "line": 8,
                "col": 1
              },
              {
                "line": 8,
                "col": 17
              }
            ]
          },
          "principal": [
            {
              "name": "text",
              "type": "string",
              "value": "First callout",
              "location": [
                {
                  "line": 8,
                  "col": 5
                },
                {
                  "line": 8,
                  "col": 17
                }
              ]
            }
          ],
          "location": [
            {
              "line": 8,
              "col": 1
            },
            {
              "line": 8,
              "col": 17
            }
          ]
        },
        {
          "name": "listItem",
          "type": "block",
          "callout": {
            "name": "callout_reference",
            "type": "inline",
            "variant": "explicit",
            "number": 2,
            "location": [
              {
                "line": 9,
                "col": 1
              },
              {
                "line": 9,
                "col": 18
              }
            ]
          },
          "principal": [
            {
              "name": "text",
              "type": "string",
              "value": "Second callout",
              "location": [
                {
                  "line": 9,
                  "col": 5
                },
                {
                  "line": 9,
                  "col": 18
                }
              ]
            }
          ],
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 9,
              "col": 18
            }
          ]
        },
        {
          "name": "listItem",
          "type": "block",
          "callout": {
            "name": "callout_reference",
            "type": "inline",
            "variant": "explicit",
            "number": 3,
            "location": [
              {
                "line": 10,
                "col": 1
              },
              {
                "line": 10,
                "col": 17
              }
            ]
          },
          "principal": [
            {
              "name": "text",
              "type": "string",
              "value": "Third callout",
              "location": [
                {
                  "line": 10,
                  "col": 5
                },
                {
                  "line": 10,
                  "col": 17
                }
              ]
            }
          ],
          "location": [
            {
              "line": 10,
              "col": 1
            },
            {
              "line": 10,
              "col": 17
            }
          ]
        }
      ],
      "location": [
        {
          "line": 8,
          "col": 1
        },
        {
          "line": 10,
          "col": 17
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 10,
      "col": 17
    }
  ]
}