Pattern parser (continued)

Rewrote the grammar to handle all expected features ,
Changed the parser structure
Still WIP