added support for ... in pattern match and BEGIN to c gen