Initial parser and generator