{"version":"1.0","type":"rich","title":"Process C-like preprocessors permutations (by creating individual files for each permutation)","description":"This example visualizes the permutations of C-like preprocessor directives by generating a separate file for each possible conditional branch combination. It parses source lines into a fragment tree of `Either` nodes representing `if`/`else` branches, then recursively renders every permutation into distinct files. The visualization relies on Python’s `re` module for token matching, and file I/O via `Path` and `tempfile`. The rendering process uses custom `Fragment` and `Either` classes to track conditional logic, demonstrating how combinatorial preprocessor states can be systematically enumerated and output.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-ae2dc675c600a89fa95f65b04e285b4b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}