c++gen progress... lotsa regexping and lambdas going on here