acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "attributes": {
    "filename": "./app.js"
  },
  "blocks": [
    {
      "name": "listing",
      "type": "block",
      "form": "delimited",
      "delimiter": "----",
      "metadata": {
        "attributes": {
          "javascript": null
        },
        "style": "source"
      },
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "const express = require('express'); ",
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 13,
              "col": 21
            }
          ]
        },
        {
          "name": "callout_reference",
          "type": "inline",
          "variant": "explicit",
          "number": 1,
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 13,
              "col": 21
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "\nconst app = express();\n\napp.get('/', (req, res) => { ",
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 13,
              "col": 21
            }
          ]
        },
        {
          "name": "callout_reference",
          "type": "inline",
          "variant": "explicit",
          "number": 2,
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 13,
              "col": 21
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "\n  res.send('Hello World!');\n});\n\napp.listen(3000); ",
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 13,
              "col": 21
            }
          ]
        },
        {
          "name": "callout_reference",
          "type": "inline",
          "variant": "explicit",
          "number": 3,
          "location": [
            {
              "line": 6,
              "col": 1
            },
            {
              "line": 13,
              "col": 21
            }
          ]
        }
      ],
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "./app.js",
          "location": [
            {
              "line": 3,
              "col": 2
            },
            {
              "line": 3,
              "col": 2
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 14,
          "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": 15,
                "col": 1
              },
              {
                "line": 15,
                "col": 32
              }
            ]
          },
          "principal": [
            {
              "name": "text",
              "type": "string",
              "value": "Import the Express framework",
              "location": [
                {
                  "line": 15,
                  "col": 5
                },
                {
                  "line": 15,
                  "col": 32
                }
              ]
            }
          ],
          "location": [
            {
              "line": 15,
              "col": 1
            },
            {
              "line": 15,
              "col": 32
            }
          ]
        },
        {
          "name": "listItem",
          "type": "block",
          "callout": {
            "name": "callout_reference",
            "type": "inline",
            "variant": "explicit",
            "number": 2,
            "location": [
              {
                "line": 16,
                "col": 1
              },
              {
                "line": 16,
                "col": 26
              }
            ]
          },
          "principal": [
            {
              "name": "text",
              "type": "string",
              "value": "Define a route handler",
              "location": [
                {
                  "line": 16,
                  "col": 5
                },
                {
                  "line": 16,
                  "col": 26
                }
              ]
            }
          ],
          "location": [
            {
              "line": 16,
              "col": 1
            },
            {
              "line": 16,
              "col": 26
            }
          ]
        },
        {
          "name": "listItem",
          "type": "block",
          "callout": {
            "name": "callout_reference",
            "type": "inline",
            "variant": "explicit",
            "number": 3,
            "location": [
              {
                "line": 17,
                "col": 1
              },
              {
                "line": 17,
                "col": 33
              }
            ]
          },
          "principal": [
            {
              "name": "text",
              "type": "string",
              "value": "Start the server on port 3000",
              "location": [
                {
                  "line": 17,
                  "col": 5
                },
                {
                  "line": 17,
                  "col": 33
                }
              ]
            }
          ],
          "location": [
            {
              "line": 17,
              "col": 1
            },
            {
              "line": 17,
              "col": 33
            }
          ]
        }
      ],
      "location": [
        {
          "line": 15,
          "col": 1
        },
        {
          "line": 17,
          "col": 33
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 17,
      "col": 33
    }
  ]
}