Implemented a simple parser.