Mercurial > projects > dil
comparison src/main.d @ 832:80eb3251e010
Updated to Tango 0.99.7.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 15:17:07 +0200 |
parents | d659f7aa055c |
children | 4063da6f3edd |
comparison
equal
deleted
inserted
replaced
831:c60bd5cd61da | 832:80eb3251e010 |
---|---|
456 --xml : use XML format (default) | 456 --xml : use XML format (default) |
457 --html : use HTML format | 457 --html : use HTML format |
458 --lines : print line numbers | 458 --lines : print line numbers |
459 | 459 |
460 Example: | 460 Example: |
461 dil hl Parser.d --html --syntax > Parser.html`; | 461 dil hl src/main.d --html --syntax > main.html`; |
462 break; | 462 break; |
463 case "importgraph", "igraph": | 463 case "importgraph", "igraph": |
464 // msg = GetMsg(MID.HelpImportGraph); | 464 // msg = GetMsg(MID.HelpImportGraph); |
465 msg = `Parse a module and build a module dependency graph based on its imports. | 465 msg = `Parse a module and build a module dependency graph based on its imports. |
466 Usage: | 466 Usage: |
508 -i : ignore whitespace tokens (e.g. comments, shebang etc.) | 508 -i : ignore whitespace tokens (e.g. comments, shebang etc.) |
509 -ws : print a token's preceding whitespace characters. | 509 -ws : print a token's preceding whitespace characters. |
510 | 510 |
511 Example: | 511 Example: |
512 echo "module foo; void func(){}" | dil tok - | 512 echo "module foo; void func(){}" | dil tok - |
513 dil tok main.d | grep ^[0-9]`; | 513 dil tok src/main.d | grep ^[0-9]`; |
514 break; | 514 break; |
515 case "stats", "statistics": | 515 case "stats", "statistics": |
516 msg = "Gather statistics about D source files. | 516 msg = "Gather statistics about D source files. |
517 Usage: | 517 Usage: |
518 dil stat file.d [file2.d, ...] [Options] | 518 dil stat file.d [file2.d, ...] [Options] |
520 Options: | 520 Options: |
521 --toktable : print the count of all kinds of tokens in a table. | 521 --toktable : print the count of all kinds of tokens in a table. |
522 --asttable : print the count of all kinds of nodes in a table. | 522 --asttable : print the count of all kinds of nodes in a table. |
523 | 523 |
524 Example: | 524 Example: |
525 dil stat src/dil/Parser.d src/dil/Lexer.d"; | 525 dil stat src/main.d src/dil/Unicode.d"; |
526 break; | 526 break; |
527 case "trans", "translate": | 527 case "trans", "translate": |
528 msg = `Translate a D source file to another language. | 528 msg = `Translate a D source file to another language. |
529 Usage: | 529 Usage: |
530 dil translate Language file.d | 530 dil translate Language file.d |