Open mingodad opened 3 years ago
Lzz seems to process files a bit like FOG.
I do not use FOG actively right now, but I have plans to use it more in the future. The upcoming C++23 reflection feature has been more interesting. It finally adds the key features of FOG to standard c++. I’ve been thinking about trying to make a FOG frontend to clang, but it seems too laborious.
That railroad diagram is really neat. 👍 It’s fun to see the extensive FOG grammar visualized. That will probably help in debugging if you make changes to the grammar.
I'm curious about this tool, I used in the past "Lzz, The Lazy C++ Compiler (https://github.com/mjspncr/lzz3)" and just found your project indirectly through https://github.com/AthrunArthur/cxxparser .
Are you still activelly using it ?
I've done a experimental tool to convert bison grammars to a kind of EBNF understood by https://www.bottlecaps.de/rr/ui to generate railroad diagrams see bellow the converted
src/Fog/FogParser.y
and with some hand made changes to allow view it at https://www.bottlecaps.de/rr/ui the order of the rules could be changed to a better view of the railroad diagrams. Copy and paste the EBNF bellow on https://www.bottlecaps.de/rr/ui tab Edit Grammar then switch to the tab View Diagram.