How to create simple parser, in pictures