Parser: implement #parse_files and #parse_stream

This change makes tests run successfully.