When developing a grammar using the Semantic Grammar mode, the write, compile, test cycle takes a few steps. The following pattern works well:
Make changes in the grammar file.
Press C-c C-c to compile the .by or .wy grammar file into an Emacs Lisp file, such as mylanguage-wy.el. The cursor will end in this file.
If you have never loaded this language before, then use
M-x eval-buffer RET
to get it running. If you have loaded a previous revision in, then
eval-defun bound to
C-M-x on the changed
The generated variables are:
Once you have reset the value of the particular part of the grammar you changed, switch to a buffer that you use for testing the grammar, and reinitialize that buffer. Usually this is something like
M-x revert-buffer RET
M-x LANG-mode RET
Once a buffer has been reparsed, use
C-c , ?, and M-x bovinate RET to quickly identify success
or failure of your changes.