T-grammar