Latest version of the grammar for the thesis