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": "This has ",
          "location": [
            {
              "line": 1,
              "col": 1
            },
            {
              "line": 1,
              "col": 9
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "code",
          "form": "constrained",
          "inlines": [
            {
              "name": "span",
              "type": "inline",
              "variant": "strong",
              "form": "constrained",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "bold code",
                  "location": [
                    {
                      "line": 1,
                      "col": 12
                    },
                    {
                      "line": 1,
                      "col": 20
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 1,
                  "col": 11
                },
                {
                  "line": 1,
                  "col": 21
                }
              ]
            }
          ],
          "location": [
            {
              "line": 1,
              "col": 10
            },
            {
              "line": 1,
              "col": 22
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " and ",
          "location": [
            {
              "line": 1,
              "col": 23
            },
            {
              "line": 1,
              "col": 27
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "code",
          "form": "constrained",
          "inlines": [
            {
              "name": "span",
              "type": "inline",
              "variant": "emphasis",
              "form": "constrained",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "italic code",
                  "location": [
                    {
                      "line": 1,
                      "col": 30
                    },
                    {
                      "line": 1,
                      "col": 40
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 1,
                  "col": 29
                },
                {
                  "line": 1,
                  "col": 41
                }
              ]
            }
          ],
          "location": [
            {
              "line": 1,
              "col": 28
            },
            {
              "line": 1,
              "col": 42
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " inline.",
          "location": [
            {
              "line": 1,
              "col": 43
            },
            {
              "line": 1,
              "col": 50
            }
          ]
        }
      ],
      "location": [
        {
          "line": 1,
          "col": 1
        },
        {
          "line": 1,
          "col": 50
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Also ",
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 5
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "code",
          "form": "constrained",
          "inlines": [
            {
              "name": "span",
              "type": "inline",
              "variant": "strong",
              "form": "constrained",
              "inlines": [
                {
                  "name": "span",
                  "type": "inline",
                  "variant": "emphasis",
                  "form": "constrained",
                  "inlines": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "bold italic code",
                      "location": [
                        {
                          "line": 3,
                          "col": 9
                        },
                        {
                          "line": 3,
                          "col": 24
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 3,
                      "col": 8
                    },
                    {
                      "line": 3,
                      "col": 25
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 3,
                  "col": 7
                },
                {
                  "line": 3,
                  "col": 26
                }
              ]
            }
          ],
          "location": [
            {
              "line": 3,
              "col": 6
            },
            {
              "line": 3,
              "col": 27
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " with both.",
          "location": [
            {
              "line": 3,
              "col": 28
            },
            {
              "line": 3,
              "col": 38
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 3,
          "col": 38
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 3,
      "col": 38
    }
  ]
}