Pattern parser (continued)

All tests are working so far (yeah!). Yet this is not finished as I need
to also handle parenthesis. More tests to come.