Declares interfaces which are common to both regular and context free grammars.