moved the language-independent grammar into a namespace

This prevents the grammars from the language-specific test cases from
accedentally referencing types from the lang-independent grammar