Parser development

- Implement rules as link lists
- Add parse error messages with line numbers