acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Styled Paragraphs 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": "Quote Style",
          "location": [
            {
              "line": 3,
              "col": 4
            },
            {
              "line": 3,
              "col": 14
            }
          ]
        }
      ],
      "level": 1,
      "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
                }
              ]
            }
          ],
          "metadata": {
            "style": "quote",
            "attribution": [
              {
                "name": "text",
                "type": "string",
                "value": "Albert Einstein",
                "location": [
                  {
                    "line": 5,
                    "col": 9
                  },
                  {
                    "line": 5,
                    "col": 24
                  }
                ]
              }
            ]
          },
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 6,
              "col": 65
            }
          ]
        },
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Four score and seven years ago our fathers brought forth on this continent a new nation.",
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 9,
                  "col": 88
                }
              ]
            }
          ],
          "metadata": {
            "style": "quote",
            "attribution": [
              {
                "name": "text",
                "type": "string",
                "value": "Abraham Lincoln",
                "location": [
                  {
                    "line": 8,
                    "col": 9
                  },
                  {
                    "line": 8,
                    "col": 24
                  }
                ]
              }
            ],
            "citetitle": [
              {
                "name": "text",
                "type": "string",
                "value": "Gettysburg Address",
                "location": [
                  {
                    "line": 8,
                    "col": 26
                  },
                  {
                    "line": 8,
                    "col": 44
                  }
                ]
              }
            ]
          },
          "location": [
            {
              "line": 8,
              "col": 1
            },
            {
              "line": 9,
              "col": 88
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 9,
          "col": 88
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Verse Style",
          "location": [
            {
              "line": 11,
              "col": 4
            },
            {
              "line": 11,
              "col": 14
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "The fog comes\non little cat feet.",
              "location": [
                {
                  "line": 14,
                  "col": 1
                },
                {
                  "line": 15,
                  "col": 19
                }
              ]
            }
          ],
          "metadata": {
            "style": "verse",
            "attribution": [
              {
                "name": "text",
                "type": "string",
                "value": "Carl Sandburg",
                "location": [
                  {
                    "line": 13,
                    "col": 9
                  },
                  {
                    "line": 13,
                    "col": 22
                  }
                ]
              }
            ],
            "citetitle": [
              {
                "name": "text",
                "type": "string",
                "value": "Fog",
                "location": [
                  {
                    "line": 13,
                    "col": 24
                  },
                  {
                    "line": 13,
                    "col": 27
                  }
                ]
              }
            ]
          },
          "location": [
            {
              "line": 13,
              "col": 1
            },
            {
              "line": 15,
              "col": 19
            }
          ]
        }
      ],
      "location": [
        {
          "line": 11,
          "col": 1
        },
        {
          "line": 15,
          "col": 19
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Literal Style",
          "location": [
            {
              "line": 17,
              "col": 4
            },
            {
              "line": 17,
              "col": 16
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "This is literal text.\n  It preserves   spacing.",
              "location": [
                {
                  "line": 20,
                  "col": 1
                },
                {
                  "line": 21,
                  "col": 25
                }
              ]
            }
          ],
          "metadata": {
            "style": "literal"
          },
          "location": [
            {
              "line": 19,
              "col": 1
            },
            {
              "line": 21,
              "col": 25
            }
          ]
        }
      ],
      "location": [
        {
          "line": 17,
          "col": 1
        },
        {
          "line": 21,
          "col": 25
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 21,
      "col": 25
    }
  ]
}