Coding neural network simulators by hand is often a tedious and error-prone task. In this paper, we seek to remedy this situation by presenting a code generator that produces efficient C++ simulation code for a wide variety of backpropagation networks. We define a high-level, Maple-like language that allows the specification of such networks. This language is compiled to C++ code segments that in turn are executable in link with an already given generic code for backpropagation networks. Our generator allows the specification of arbitrary network topologies (with the restriction of full connections between layers) and weightchange formulae, while the activation rule and error propagation rule remain fixed. With this tool, future research on learning rules for backpropagatiou networks can be made more efficient by eliminating routine work and producing code that is guaranteed to be error-free.