add initial grammar, copying from https://github.com/mantra/grammar/commit/76e3edfae18ab9004860d7c675b54587d0dfd24e