Understanding the basics of parsers