Add framework for Grammar class.