OLD | NEW |
(Empty) | |
| 1 This example shows how to write a lazy transformer. |
| 2 |
| 3 This lazy tranformer implements a ROT13 converter. ROT13 (ROTate 13) |
| 4 is a classic substitution cipher which replaces each letter in the source |
| 5 file with the corresponding letter 13 places later in the alphabet. |
| 6 The source file should have a ".txt" extension and the converted file |
| 7 is created with a ".shhhh" extension. |
| 8 |
| 9 Generally, only transformers that take a long time to run should be made lazy. |
| 10 This transformer is not particularly slow, but imagine that it might be used |
| 11 to convert the entire library of congress–laziness would then be a virtue. |
| 12 |
| 13 For more information, see Writing a Lazy Transformer at: |
| 14 https://www.dartlang.org/tools/pub/transformers/lazy-transformer.html |
OLD | NEW |