main (scripts/gen_bindings.py)¶
Overview · 13 steps, 1 lane
All 13 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | main | generate | Run the full parse + emit pipeline; return generated sources. | REQ-API-014 | — | scripts/gen_bindings.py:933 |
| 2 | generate | parse_enum | Parse a single typedef enum block out of header text. | REQ-API-014 | — | scripts/gen_bindings.py:786 |
| 3 | generate | read | Read a UTF-8 text file; strip comments; return the cleaned text. | — | — | scripts/gen_bindings.py:786 |
| 4 | generate | parse_struct | Parse a typedef struct block out of header text. | REQ-API-014 | — | scripts/gen_bindings.py:788 |
| 5 | generate | read | Read a UTF-8 text file; strip comments; return the cleaned text. | — | — | scripts/gen_bindings.py:788 |
| 6 | generate | parse_callbacks | Parse all typedef R (*name)(args) callback declarations. | — | loop (line 795), loop (line 796) | scripts/gen_bindings.py:796 |
| 7 | generate | read | Read a UTF-8 text file; strip comments; return the cleaned text. | — | loop (line 795), loop (line 796) | scripts/gen_bindings.py:796 |
| 8 | generate | parse_functions | Parse every ENTROPIC_EXPORT function declaration in text. | REQ-API-014 | — | scripts/gen_bindings.py:801 |
| 9 | generate | read | Read a UTF-8 text file; strip comments; return the cleaned text. | — | — | scripts/gen_bindings.py:801 |
| 10 | generate | render_bindings | Concatenate prologue + emitted sections into the bindings source. | REQ-API-014 | — | scripts/gen_bindings.py:810 |
| 11 | generate | render_manifest | Build the manifest module text. | REQ-API-014 | — | scripts/gen_bindings.py:811 |
| 12 | main | check_outputs | Compare generated text against committed files; exit 1 on drift. | REQ-API-014 | if (line 935) | scripts/gen_bindings.py:935 |
| 13 | main | write_outputs | Write generated files. | REQ-API-014 | — | scripts/gen_bindings.py:936 |
Functions¶
11 functions
check_outputsscripts/gen_bindings.pygeneratescripts/gen_bindings.pymainscripts/gen_bindings.pyparse_callbacksscripts/gen_bindings.pyparse_enumscripts/gen_bindings.pyparse_functionsscripts/gen_bindings.pyparse_structscripts/gen_bindings.pyreadscripts/gen_bindings.pyrender_bindingsscripts/gen_bindings.pyrender_manifestscripts/gen_bindings.pywrite_outputsscripts/gen_bindings.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
11 functions, each with its quick view
- check_outputs
Compare generated text against committed files; exit 1 on drift.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- generate
Run the full parse + emit pipeline; return generated sources.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- main
Module entrypoint.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- parse_callbacks
Parse all typedef R (*name)(args) callback declarations.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- parse_enum
Parse a single typedef enum block out of header text.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- parse_functions
Parse every ENTROPIC_EXPORT function declaration in text.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- parse_struct
Parse a typedef struct block out of header text.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- read
Read a UTF-8 text file; strip comments; return the cleaned text.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- render_bindings
Concatenate prologue + emitted sections into the bindings source.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- render_manifest
Build the manifest module text.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- write_outputs
Write generated files.
Map
Show it on the map, in its block's wedge.
Block
scripts is the block holding
scripts/gen_bindings.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs