Wrote parser and main().