Abstract
Three case studies are presented in this chapter to show the use of the unparser-complete metalanguage and the usability of the syntax-safe template evaluator in a practical setting. The syntax-safe template evaluator Repleo is used for implementing these case studies. Two case studies show a reimplementation of an existing code generator. The reimplemented code generators use a separated model transformation stage, resulting in less code and better maintainable code than the original implementations. The use of separated model transformation stage is also enforced by the unparser-complete metalanguage of Repleo. The maintainability is achieved by less code clones in the code generator specification and less entanglement of metacode and object code. The third case study shows the benefits of syntax-safe templates in the context of dynamic web page generation. Syntax-safe templates provide a solution against cross-site scripting attacks.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2012 ATLANTIS PRESS
About this chapter
Cite this chapter
Arnoldus, J., van den Brand, M., Serebrenik, A., Brunekreef, J. (2012). Case Studies. In: Code Generation with Templates. Atlantis Studies in Computing, vol 1. Atlantis Press, Paris. https://doi.org/10.2991/978-94-91216-56-5_7
Download citation
DOI: https://doi.org/10.2991/978-94-91216-56-5_7
Published:
Publisher Name: Atlantis Press, Paris
Print ISBN: 978-94-91216-55-8
Online ISBN: 978-94-91216-56-5
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)