llvm-project/clang-tools-extra/pseudo/tool/HTMLForest.html
Sam McCall c91ce94144 [pseudo] Add clang-pseudo -html-forest=<output.html>, an HTML forest browser
It generates a standalone HTML file with all needed JS/CSS embedded.
This allows navigating the tree both with a tree widget and in the code,
inspecting nodes, and selecting ambiguous alternatives.

Demo: https://htmlpreview.github.io/?https://gist.githubusercontent.com/sam-mccall/03882f7499d293196594e8a50599a503/raw/ASTSignals.cpp.html

Differential Revision: https://reviews.llvm.org/D130004
2022-07-19 22:32:11 +02:00

16 lines
316 B
HTML

<div id="tree"><ul></ul></div>
<pre id="code"></pre>
<div id="info" hidden>
<header>
<span id="i_symbol"></span>
<span id="i_kind"></span>
</header>
<section>
<div id="i_rules"></div>
<div id="i_alternatives"></div>
</section>
<section>
<div id="i_ancestors"></div>
</section>
</div>