Actions
Numbers and Spoken Forms
Unimacro and Vocola
Tracing
Inifiles
Translations
Cooperation with voicecoder
AutoHotkey
Unit testing
Grammar classes
 grammarX
 Browsable Grammar
 IniGrammar
 DocstringGrammar
  Fullresults
  Example tasks grammar
  Example word styles
  Programmer
 Natlinkutilsbj
 Natlinkutilsqh
Global dictation
Monitorfunctions

Instructions for the programmers that want to to make grammars based on the DocstringGrammar class

gramSpec variable

This variable will be a string, constructed from the docstrings and from the gramSpec variable at the top of the class definition. In any case, in the _init_ phase, the gramSpec is converted into a string.

  • When you want to include/exclude grammar rules at start of the grammar, do this the way that is described for the IniGrammar specification, before you call the DocstringGrammar.__init__ function.
  • When translated further, in the IniGrammar superclass, the other considerations about the variable gramSpec should be noticed.