Add grammer_class property for lexer