Adding Concrete Syntax to a Prolog-Based Program Synthesis System [chapter]

Bernd Fischer, Eelco Visser
<span title="">2004</span> <i title="Springer Berlin Heidelberg"> <a target="_blank" rel="noopener" href="https://fatcat.wiki/container/2w3awgokqne6te4nvlofavy5a4" style="color: black;">Lecture Notes in Computer Science</a> </i> &nbsp;
Program generation and transformation systems manipulate large, parameterized object language fragments. Support for user-definable concrete syntax makes this easier but is typicaUy restricted to certain object and meta languages. We show how Prolog can be retrofitted with concrete syntax and describe how a seamless interaction of concrete syntax fragments with an existing "legacy" meta-programming system based on abstract syntax is achieved. We apply the approach to gradually migrate 'the
more &raquo; ... as of the AUTOBAYES program synthesis system to concrete syntax. F i t experiences show that this can result in a considerable reduction of the code size and an improved readability of the code. In particular, abstracting out fresh-variable generation and second-order term construction allows the formulation of larger continuous fragments and improves the "locality" in the schemas.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1007/978-3-540-25938-1_5">doi:10.1007/978-3-540-25938-1_5</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/xrkshcatwfhn3g5tbhahe3k2mq">fatcat:xrkshcatwfhn3g5tbhahe3k2mq</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20170815213217/https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20030107525.pdf" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/a5/5d/a55df02171e5c5c20a2e4a9e141051240697e61d.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1007/978-3-540-25938-1_5"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="external alternate icon"></i> springer.com </button> </a>