Templates for Event-B Code Generation [chapter]

Andrew Edmunds
2014 Lecture Notes in Computer Science  
The Event-B method, and its tools, provide a way to formally model systems; Tasking Event-B is an extension facilitating code generation. We have recently begun to explore how we can configure the code generator, for deployment on different target systems. In this paper, we describe how templates can be used to avoid hard-coding 'boilerplate' code, and how to merge this with code generated from the formal model. We have developed a lightweight approach, where tags (i.e. tagged mark-up) can be
more » ... aced in source templates. The template-processors we introduce may be of use to other plug-in developers wishing to merge a 'source' text file with some generated output.
doi:10.1007/978-3-662-43652-3_25 fatcat:46wcenty6fb2fhh4d4nnx2c64y