{
  "repo": "pingcap/sqlgram",
  "binary": "sg",
  "binary_path": "tools/sg/sg.go",
  "surface_kind": "cli_tool",
  "type": "cli_tool",
  "services": [
    {
      "name": "SqlgramGeneratorCLI",
      "package": "tools/sg",
      "methods": [
        {
          "name": "sg bnf",
          "name_key": "CLI sg bnf",
          "input": "parser.y location, optional spec.json, and target output directory",
          "output": "generated BNF files for SQL grammar statements",
          "type": "cli"
        },
        {
          "name": "sg svg",
          "name_key": "CLI sg svg",
          "input": "input BNF directory, output SVG directory, and optional spec configuration",
          "output": "railroad-diagram SVG or embeddable HTML snippets",
          "type": "cli"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "The repository is mainly a static grammar site, but tools/sg/sg.go provides the only executable entrypoint through Cobra.",
      "index.xhtml and the stylesheet/javascript assets are documentation artifacts, not runtime HTTP services."
    ]
  }
}
