How wilson27-11/source-to-html works
Source-to-html is a small command-line C-to-HTML converter. Its workflow is: accept an input path, read the C source, tokenize and classify it, then write a line-numbered, syntax-colored HTML document. The tokenizer and HTML emission are implemented together in one source file. Relationships shown are directly supported by that file; the README documents the converter’s overall purpose and dark theme.
Main entry points: src2html.c CLI orchestration
Components 7
Other components
- CLI user
- CLI orchestration
src2html.c - Source reader
src2html.c - C highlighter
src2html.c - HTML emitter
src2html.c - C source file
- HTML document
Connections 8
- CLI user → CLI orchestration: provides arguments
src2html.c - C source file → Source reader: reads bytes
src2html.c - CLI orchestration → Source reader: calls
src2html.c - Source reader → CLI orchestration: returns buffer
src2html.c - CLI orchestration → C highlighter: passes source
src2html.c - C highlighter → HTML emitter: emits tokens
src2html.c - CLI orchestration → HTML emitter: writes page
src2html.c - HTML emitter → HTML document: writes document
src2html.c