document class Grammar