Partial implementation of parser.