Set default patterns.
Rename context to rule.
Remove dead code, the 'grammar' is now a rule.