static void PrintKeywords(Log& output) { /* Find longest keyword */ size_t maxLen = 0; for (const auto& key : SyntaxAnalyzer::Keywords()) maxLen = std::max(maxLen, key.first.size()); /* Print keywords */ output.Headline("keywords:"); for (const auto& key : SyntaxAnalyzer::Keywords()) PrintKeywordInfo(output, key, maxLen); }
static void PrintAttribs(Log& output) { /* Print attributes */ output.Headline("attributes:"); for (const std::string& attr : { Attrib::idDeprecated, Attrib::idFinal, Attrib::idOverride, Attrib::idExport, Attrib::idBind, Attrib::idSet, Attrib::idGet }) { output.Message(attr); } }
static void PrintSearchPaths(Log& output) { output.Headline("search paths:"); output.Message("library path: \"" + SearchPaths::LibraryPath()); output.Message("module path: \"" + SearchPaths::ModulesPath()); }