refactored parsers and tokenizer
task 3 implemented