Wrote beginning of CFG parser.