Parse rules

Please merge PR #3 first.

Parsing simple rules of the form

```
* predicate => outcome
```

and also nested rules of the form

```
* predicate
  * predicate2 => outcome
```