(wip) Initial version of stream parser