Automatically generate the grammar overview#2135
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
| } | ||
| } | ||
| return entries; | ||
| } |
There was a problem hiding this comment.
This function is copied from the footer generation. I plan to move the footer generation to this script too, see e.g. #2061 (but that isn't a top priority as the footer already exists and we don't add new pages frequently).
| auto ps = line.splitter(ddocEntryStart).dropOne.front.splitter(","); | ||
| auto name = ps.front.stripExtension.withExtension(".dd").to!string; | ||
| auto fileName = specDir.buildPath(name); | ||
| auto title = ps.dropOne.front.idup.strip; |
There was a problem hiding this comment.
I would love to have shift - front and popFront in one step.
| { | ||
| foreach (i, entry; specTocEntries) | ||
| { | ||
| if (entry.fileName.endsWith("grammar.dd", "lex.dd", "simd.dd")) |
|
@wilzbach |

I guess that tells all?
This isn't perfect yet, but already pretty cool.
TODO:
There are 8 new modules which contained D grammar which have been forgotten.