Partial implementation of parser