Mercurial > projects > dil
comparison trunk/src/main.d @ 765:bc812843603c
Template functions are wrapped inside TemplateDeclarations now.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 16 Feb 2008 20:18:42 +0100 |
parents | 4579e8505d5e |
children | ef9bee5a2d61 |
comparison
equal
deleted
inserted
replaced
764:4579e8505d5e | 765:bc812843603c |
---|---|
84 } | 84 } |
85 | 85 |
86 printSymbolTable(mod, ""); | 86 printSymbolTable(mod, ""); |
87 } | 87 } |
88 | 88 |
89 printErrors(infoMan); | 89 infoMan.hasInfo && printErrors(infoMan); |
90 break; | 90 break; |
91 case "ddoc", "d": | 91 case "ddoc", "d": |
92 if (args.length < 4) | 92 if (args.length < 4) |
93 return printHelp("ddoc"); | 93 return printHelp("ddoc"); |
94 | 94 |
111 } | 111 } |
112 | 112 |
113 infoMan = new InfoManager(); | 113 infoMan = new InfoManager(); |
114 // Execute command. | 114 // Execute command. |
115 cmd.DDoc.execute(filePaths, destination, macroPaths, incUndoc, verbose, infoMan); | 115 cmd.DDoc.execute(filePaths, destination, macroPaths, incUndoc, verbose, infoMan); |
116 if (infoMan.hasInfo) | 116 infoMan.hasInfo && printErrors(infoMan); |
117 printErrors(infoMan); | |
118 break; | 117 break; |
119 case "gen", "generate": | 118 case "gen", "generate": |
120 char[] fileName; | 119 char[] fileName; |
121 DocOption options = DocOption.Tokens; | 120 DocOption options = DocOption.Tokens; |
122 foreach (arg; args[2..$]) | 121 foreach (arg; args[2..$]) |
134 } | 133 } |
135 } | 134 } |
136 if (!(options & (DocOption.XML | DocOption.HTML))) | 135 if (!(options & (DocOption.XML | DocOption.HTML))) |
137 options |= DocOption.XML; // Default to XML. | 136 options |= DocOption.XML; // Default to XML. |
138 cmd.Generate.execute(fileName, options, infoMan); | 137 cmd.Generate.execute(fileName, options, infoMan); |
139 if (infoMan.hasInfo) | 138 infoMan.hasInfo && printErrors(infoMan); |
140 printErrors(infoMan); | |
141 break; | 139 break; |
142 case "importgraph", "igraph": | 140 case "importgraph", "igraph": |
143 string filePath; | 141 string filePath; |
144 string[] includePaths; | 142 string[] includePaths; |
145 string[] regexps; | 143 string[] regexps; |
236 if (printWS && token.ws) | 234 if (printWS && token.ws) |
237 Stdout(token.wsChars); | 235 Stdout(token.wsChars); |
238 Stdout(token.srcText)(separator); | 236 Stdout(token.srcText)(separator); |
239 } | 237 } |
240 | 238 |
241 printErrors(infoMan); | 239 infoMan.hasInfo && printErrors(infoMan); |
242 break; | 240 break; |
243 case "trans", "translate": | 241 case "trans", "translate": |
244 if (args.length < 3) | 242 if (args.length < 3) |
245 return printHelp("trans"); | 243 return printHelp("trans"); |
246 | 244 |