Added pattern manager in parsing;
Added pattern definition parse + semantic check
Added pattern in pattern manager