Context-free grammars with regular operations.

This code may be used under the terms of the GNU General Public License. @author Anders Møller <amoeller@cs.au.dk>