acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Quoted Paragraph Test",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 23
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 23
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "quote",
      "type": "block",
      "form": "delimited",
      "delimiter": "\"",
      "metadata": {
        "style": "quote",
        "attribution": [
          {
            "name": "text",
            "type": "string",
            "value": "Thomas Jefferson",
            "location": [
              {
                "line": 4,
                "col": 4
              },
              {
                "line": 4,
                "col": 19
              }
            ]
          }
        ],
        "citetitle": [
          {
            "name": "text",
            "type": "string",
            "value": "Papers of Thomas Jefferson",
            "location": [
              {
                "line": 4,
                "col": 22
              },
              {
                "line": 4,
                "col": 47
              }
            ]
          }
        ]
      },
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "I hold it that a little rebellion now and then is a good thing.",
              "location": [
                {
                  "line": 3,
                  "col": 1
                },
                {
                  "line": 3,
                  "col": 63
                }
              ]
            }
          ],
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 63
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 4,
          "col": 47
        }
      ]
    },
    {
      "name": "quote",
      "type": "block",
      "form": "delimited",
      "delimiter": "\"",
      "metadata": {
        "style": "quote",
        "attribution": [
          {
            "name": "text",
            "type": "string",
            "value": "Albert Einstein",
            "location": [
              {
                "line": 7,
                "col": 4
              },
              {
                "line": 7,
                "col": 18
              }
            ]
          }
        ]
      },
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Everything should be made as simple as possible, but not simpler.",
              "location": [
                {
                  "line": 6,
                  "col": 1
                },
                {
                  "line": 6,
                  "col": 65
                }
              ]
            }
          ],
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 6,
              "col": 65
            }
          ]
        }
      ],
      "location": [
        {
          "line": 6,
          "col": 1
        },
        {
          "line": 7,
          "col": 18
        }
      ]
    },
    {
      "name": "quote",
      "type": "block",
      "form": "delimited",
      "delimiter": "\"",
      "metadata": {
        "style": "quote",
        "attribution": [
          {
            "name": "text",
            "type": "string",
            "value": "Anonymous",
            "location": [
              {
                "line": 11,
                "col": 4
              },
              {
                "line": 11,
                "col": 12
              }
            ]
          }
        ]
      },
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Multi-line quote\nspanning two lines.",
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 10,
                  "col": 18
                }
              ]
            }
          ],
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 10,
              "col": 18
            }
          ]
        }
      ],
      "location": [
        {
          "line": 9,
          "col": 1
        },
        {
          "line": 11,
          "col": 12
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 11,
      "col": 12
    }
  ]
}