parser.py

this is the code for the parser