Extending the FSyntax/Hiord approach with imperative notation

Corral Rebollar, Paula, Morales Caballero, José Francisco ORCID: https://orcid.org/0000-0001-9782-8135, López García, Pedro ORCID: https://orcid.org/0000-0002-1092-2071 and Hermenegildo, Manuel V. ORCID: https://orcid.org/0000-0002-7583-323X (2025). Extending the FSyntax/Hiord approach with imperative notation. En: "35th International Symposium, LOPSTR 2025", 9-10 Sep 2025, Rende, Italia. ISBN 978-3-032-04848-6. pp. 57-74. https://doi.org/10.1007/978-3-032-04848-6_4.

Descripción

Título: Extending the FSyntax/Hiord approach with imperative notation
Autor/es:
Tipo de Documento: Ponencia en Congreso o Jornada (Artículo)
Título del Evento: 35th International Symposium, LOPSTR 2025
Fechas del Evento: 9-10 Sep 2025
Lugar del Evento: Rende, Italia
Título del Libro: Logic-Based Program Synthesis and Transformation : 35th International Symposium, LOPSTR 2025, Rende, Italy, September 9–10, 2025
Fecha: 12 Septiembre 2025
ISBN: 978-3-032-04848-6
Volumen: 16117
Materias:
ODS:
Palabras Clave Informales: Imperative constructs in declarative languages, syntactic extensions, logic and functional programming, higher order, prolog
Escuela: E.T.S. de Ingenieros Informáticos (UPM)
Departamento: Inteligencia Artificial
Licencias Creative Commons: Reconocimiento - Sin obra derivada - No comercial

Texto completo

[thumbnail of HERME_2025_02.pdf] PDF (Portable Document Format) - Acceso permitido solamente al administrador del Archivo Digital UPM - Se necesita un visor de ficheros PDF, como GSview, Xpdf o Adobe Acrobat Reader
Descargar (409kB)

Resumen

State variables, loops, and other features of imperative programming languages can bring coding simplification for certain programming idioms that are more cumbersome to express recursively. Because of this, some logic programming systems have incorporated various imperative constructs. FSyntax is a syntactic approach to supporting functional notation in Prolog systems which is based on the use of the syntax and term expansion facilities of the language. Hiord is also a syntactic approach to supporting higher-order in Prolog, building on call/n, and adding other features such as anonymous predicates. Both are used extensively, for example, in the Ciao Prolog system. In this paper, we propose a number of imperative-style constructs based on extending FSyntax and Hiord. These extensions are designed to combine nicely with the basic functional notation and the higher-order facilities, as well as with other extensions, such as constraints. In contrast to other proposals, our approach provides a set of primitives and a higherlevel mechanism that, together, allow users to easily extend the language with features such as array notation, state variables, loops, etc. We illustrate the approach by defining a set of such features and using them to translate idiomatically in imperative style a large collection of small but interesting programs from the Euler Project, for which imperative-style implementations are available in multiple languages. We also show that the approach offers competitive performance.

Proyectos asociados

Tipo
Código
Acrónimo
Responsable
Título
Gobierno de España
CEX2024-001471-M
Sin especificar
Sin especificar
María de Maeztu
Gobierno de España
TED2021- 132464B-I00
Sin especificar
Sin especificar
PRODIGY

Más información

ID de Registro: 93980
Identificador DC: https://oa.upm.es/93980/
Identificador OAI: oai:oa.upm.es:93980
Identificador DOI: 10.1007/978-3-032-04848-6_4
URL Oficial: https://link.springer.com/book/10.1007/978-3-032-0...
Depositado por: Biblioteca Facultad de Informatica
Depositado el: 16 Feb 2026 12:20
Ultima Modificación: 16 Feb 2026 12:20