Samenvatting
Templates are a very common solution to generate code. They are used for different tasks like rendering webpages, creating Java Beans and so on. Most template systems have no notion of the object language and just generate text. The drawback of this approach is the possibility to generate syntactical incorrect code. This can lead to all kinds of annoying errors.
In this paper we present an approach for a syntax safe template engine. Syntax safety guarantees that the generated code can be correctly parsed. To ensure this we use the object language grammar to evaluate the template.
Originele taal-2 | Engels |
---|---|
Titel | Proceedings of the 6th International Conference on Generative Programming and Component Engineering (GPCE 2007) 1-3 October 2007, Salzburg, Austria |
Plaats van productie | New York, New York |
Uitgeverij | Association for Computing Machinery, Inc |
Pagina's | 25-32 |
ISBN van geprinte versie | 978-1-59593-855-8 |
Status | Gepubliceerd - 2007 |
Evenement | conference; GPCE 2007, Salzburg, Austria; 2007-10-01; 2007-10-03 - Duur: 1 okt. 2007 → 3 okt. 2007 |
Congres
Congres | conference; GPCE 2007, Salzburg, Austria; 2007-10-01; 2007-10-03 |
---|---|
Periode | 1/10/07 → 3/10/07 |
Ander | GPCE 2007, Salzburg, Austria |