Set grammars in the frame editors.

Fixes #6.