In formal grammar, the rules of grammar, syntax, and meaning are pre-defined, such as in any computer language, mathematics, or some teaching versions of English or other languages, such as the Loglan grammars (available at http://loglan.org/Misc/grammar80.y).