This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This program reads an L-system from standard input and outputs a PGM image. | |
| * The following characters are possible: | |
| * uppercase: Move forward with pen down | |
| * lowercase: Move forward with pen up | |
| * +: turn left | |
| * -: turn right | |
| * [: push current turtle state | |
| * ]: pop turtle state | |
| * usage: turtle ANGLE STEP_SIZE > output.pgm |