[Pattern] First approach to parse pattern. Wrote simple tests for this