added .pattern parser and interpreter