# docgen **Repository Path**: light_snow/docgen ## Basic Information - **Project Name**: docgen - **Description**: 关于 cockroach/cmd/docgen 的学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-30 - **Last Updated**: 2021-09-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## generate bnf files ```puml participant diagrams.go as dia participant extract.go as extr dia -> extr ++: runBNF\n GenerateBNF extr --> extr: readfile extr --> extr: docgen.Parse extr --> extr: get productions extr --> extr: filter out unvalid productions extr --> extr: loop generate bnf bytes extr -> dia --: return grammar\ grammar is a map of stmtName->productions dia -> extr ++: ExtractProduction\n extract a special production from stmtName extr -> dia --: special production dia --> dia: return bnf contents dia --> dia: if need replace then replace dia --> dia: loop generate bnf files ``` ## generate svg files