A confluent calculus of macro expansion and evaluation

Bove, Ana - Arbilla, Laura

Resumen:

Syntactic abbreviations or macros provide a powerful tool to increase the syntactic expressivity of programming languages. The expansion of these abbreviations can be modeled with substitutions. This paper presents an operational semantics of macro expansion and evaluation where substitutions are handled explicity. The semantics is defined in terms of a confluent, simple, and intuitive ser of rewriting rules. The resulting semantics is also a basis for developing correct implementations.


Detalles Bibliográficos
1991
Macros
Explicit Substitutions
Rewriting Semantics
Programming Languages
Substituciones Explícitas
Lenguajes de Programación
Semántica
Universidad de la República
COLIBRI
http://hdl.handle.net/20.500.12008/3410
Acceso abierto
Licencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0)
_version_ 1807523062641328128
author Bove, Ana
author2 Arbilla, Laura
author2_role author
author_facet Bove, Ana
Arbilla, Laura
author_role author
bitstream.checksum.fl_str_mv 528b6a3c8c7d0c6e28129d576e989607
9833653f73f7853880c94a6fead477b1
4afdbb8c545fd630ea7db775da747b2f
9da0b6dfac957114c6a7714714b86306
5e2f2b7616e8be0a127d2a639fbb68d8
bitstream.checksumAlgorithm.fl_str_mv MD5
MD5
MD5
MD5
MD5
bitstream.url.fl_str_mv http://localhost:8080/xmlui/bitstream/20.500.12008/3410/5/license.txt
http://localhost:8080/xmlui/bitstream/20.500.12008/3410/2/license_text
http://localhost:8080/xmlui/bitstream/20.500.12008/3410/3/license_url
http://localhost:8080/xmlui/bitstream/20.500.12008/3410/4/license_rdf
http://localhost:8080/xmlui/bitstream/20.500.12008/3410/1/TR9101.pdf
collection COLIBRI
dc.creator.none.fl_str_mv Bove, Ana
Arbilla, Laura
dc.date.accessioned.none.fl_str_mv 2014-12-02T16:05:34Z
dc.date.available.none.fl_str_mv 2014-12-02T16:05:34Z
dc.date.issued.es.fl_str_mv 1991
dc.date.submitted.es.fl_str_mv 20141202
dc.description.abstract.none.fl_txt_mv Syntactic abbreviations or macros provide a powerful tool to increase the syntactic expressivity of programming languages. The expansion of these abbreviations can be modeled with substitutions. This paper presents an operational semantics of macro expansion and evaluation where substitutions are handled explicity. The semantics is defined in terms of a confluent, simple, and intuitive ser of rewriting rules. The resulting semantics is also a basis for developing correct implementations.
dc.format.extent.es.fl_str_mv 36 p.
dc.format.mimetype.es.fl_str_mv application/pdf
dc.identifier.citation.es.fl_str_mv BOVE, A., ARBILLA, L. "A confluent calculus of macro expansion and evaluation". Reportes Técnicos 91-01. UR. FI – INCO, 1991.
dc.identifier.issn.es.fl_str_mv 0797-6410
dc.identifier.uri.none.fl_str_mv http://hdl.handle.net/20.500.12008/3410
dc.language.iso.none.fl_str_mv in
dc.publisher.es.fl_str_mv UR. FI – INCO.
dc.relation.ispartof.es.fl_str_mv Reportes Técnicos 91-01
dc.rights.license.none.fl_str_mv Licencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0)
dc.rights.none.fl_str_mv info:eu-repo/semantics/openAccess
dc.source.none.fl_str_mv reponame:COLIBRI
instname:Universidad de la República
instacron:Universidad de la República
dc.subject.es.fl_str_mv Macros
Explicit Substitutions
Rewriting Semantics
Programming Languages
Substituciones Explícitas
Lenguajes de Programación
Semántica
dc.title.none.fl_str_mv A confluent calculus of macro expansion and evaluation
dc.type.es.fl_str_mv Reporte técnico
dc.type.none.fl_str_mv info:eu-repo/semantics/report
dc.type.version.none.fl_str_mv info:eu-repo/semantics/publishedVersion
description Syntactic abbreviations or macros provide a powerful tool to increase the syntactic expressivity of programming languages. The expansion of these abbreviations can be modeled with substitutions. This paper presents an operational semantics of macro expansion and evaluation where substitutions are handled explicity. The semantics is defined in terms of a confluent, simple, and intuitive ser of rewriting rules. The resulting semantics is also a basis for developing correct implementations.
eu_rights_str_mv openAccess
format report
id COLIBRI_b726b5826a3c2a7c0481b7afcf0e6940
identifier_str_mv BOVE, A., ARBILLA, L. "A confluent calculus of macro expansion and evaluation". Reportes Técnicos 91-01. UR. FI – INCO, 1991.
0797-6410
instacron_str Universidad de la República
institution Universidad de la República
instname_str Universidad de la República
language_invalid_str_mv in
network_acronym_str COLIBRI
network_name_str COLIBRI
oai_identifier_str oai:colibri.udelar.edu.uy:20.500.12008/3410
publishDate 1991
reponame_str COLIBRI
repository.mail.fl_str_mv mabel.seroubian@seciu.edu.uy
repository.name.fl_str_mv COLIBRI - Universidad de la República
repository_id_str 4771
rights_invalid_str_mv Licencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0)
spelling 2014-12-02T16:05:34Z2014-12-02T16:05:34Z199120141202BOVE, A., ARBILLA, L. "A confluent calculus of macro expansion and evaluation". Reportes Técnicos 91-01. UR. FI – INCO, 1991.0797-6410http://hdl.handle.net/20.500.12008/3410Syntactic abbreviations or macros provide a powerful tool to increase the syntactic expressivity of programming languages. The expansion of these abbreviations can be modeled with substitutions. This paper presents an operational semantics of macro expansion and evaluation where substitutions are handled explicity. The semantics is defined in terms of a confluent, simple, and intuitive ser of rewriting rules. The resulting semantics is also a basis for developing correct implementations.Made available in DSpace on 2014-12-02T16:05:34Z (GMT). No. of bitstreams: 5 TR9101.pdf: 305765 bytes, checksum: 5e2f2b7616e8be0a127d2a639fbb68d8 (MD5) license_text: 21936 bytes, checksum: 9833653f73f7853880c94a6fead477b1 (MD5) license_url: 49 bytes, checksum: 4afdbb8c545fd630ea7db775da747b2f (MD5) license_rdf: 23148 bytes, checksum: 9da0b6dfac957114c6a7714714b86306 (MD5) license.txt: 4244 bytes, checksum: 528b6a3c8c7d0c6e28129d576e989607 (MD5) Previous issue date: 199136 p.application/pdfinUR. FI – INCO.Reportes Técnicos 91-01Las obras depositadas en el Repositorio se rigen por la Ordenanza de los Derechos de la Propiedad Intelectual de la Universidad De La República. (Res. Nº 91 de C.D.C. de 8/III/1994 – D.O. 7/IV/1994) y por la Ordenanza del Repositorio Abierto de la Universidad de la República (Res. Nº 16 de C.D.C. de 07/10/2014)info:eu-repo/semantics/openAccessLicencia Creative Commons Atribución – No Comercial – Sin Derivadas (CC BY-NC-ND 4.0)MacrosExplicit SubstitutionsRewriting SemanticsProgramming LanguagesSubstituciones ExplícitasLenguajes de ProgramaciónSemánticaA confluent calculus of macro expansion and evaluationReporte técnicoinfo:eu-repo/semantics/reportinfo:eu-repo/semantics/publishedVersionreponame:COLIBRIinstname:Universidad de la Repúblicainstacron:Universidad de la RepúblicaBove, AnaArbilla, LauraLICENSElicense.txttext/plain4244http://localhost:8080/xmlui/bitstream/20.500.12008/3410/5/license.txt528b6a3c8c7d0c6e28129d576e989607MD55CC-LICENSElicense_textapplication/octet-stream21936http://localhost:8080/xmlui/bitstream/20.500.12008/3410/2/license_text9833653f73f7853880c94a6fead477b1MD52license_urlapplication/octet-stream49http://localhost:8080/xmlui/bitstream/20.500.12008/3410/3/license_url4afdbb8c545fd630ea7db775da747b2fMD53license_rdfapplication/octet-stream23148http://localhost:8080/xmlui/bitstream/20.500.12008/3410/4/license_rdf9da0b6dfac957114c6a7714714b86306MD54ORIGINALTR9101.pdfapplication/pdf305765http://localhost:8080/xmlui/bitstream/20.500.12008/3410/1/TR9101.pdf5e2f2b7616e8be0a127d2a639fbb68d8MD5120.500.12008/34102014-12-02 14:05:34.403oai:colibri.udelar.edu.uy:20.500.12008/3410VGVybWlub3MgeSBjb25kaWNpb25lcyByZWxhdGl2YXMgYWwgZGVwb3NpdG8gZGUgb2JyYXMNCg0KDQpMYXMgb2JyYXMgZGVwb3NpdGFkYXMgZW4gZWwgUmVwb3NpdG9yaW8gc2UgcmlnZW4gcG9yIGxhIE9yZGVuYW56YSBkZSBsb3MgRGVyZWNob3MgZGUgbGEgUHJvcGllZGFkIEludGVsZWN0dWFsICBkZSBsYSBVbml2ZXJzaWRhZCBEZSBMYSBSZXDvv71ibGljYS4gKFJlcy4gTu+/vSA5MSBkZSBDLkQuQy4gZGUgOC9JSUkvMTk5NCDvv70gRC5PLiA3L0lWLzE5OTQpIHkgIHBvciBsYSBPcmRlbmFuemEgZGVsIFJlcG9zaXRvcmlvIEFiaWVydG8gZGUgbGEgVW5pdmVyc2lkYWQgZGUgbGEgUm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pbW8gZGVsIFNlcnZpY2lvIGNvcnJlc3BvbmRpZW50ZS4NCg0KDQoNCg0KDQoNCg0KDQo=Universidadhttps://udelar.edu.uy/https://www.colibri.udelar.edu.uy/oai/requestmabel.seroubian@seciu.edu.uyUruguayopendoar:47712024-07-25T14:33:53.446628COLIBRI - Universidad de la Repúblicafalse
spellingShingle A confluent calculus of macro expansion and evaluation
Bove, Ana
Macros
Explicit Substitutions
Rewriting Semantics
Programming Languages
Substituciones Explícitas
Lenguajes de Programación
Semántica
status_str publishedVersion
title A confluent calculus of macro expansion and evaluation
title_full A confluent calculus of macro expansion and evaluation
title_fullStr A confluent calculus of macro expansion and evaluation
title_full_unstemmed A confluent calculus of macro expansion and evaluation
title_short A confluent calculus of macro expansion and evaluation
title_sort A confluent calculus of macro expansion and evaluation
topic Macros
Explicit Substitutions
Rewriting Semantics
Programming Languages
Substituciones Explícitas
Lenguajes de Programación
Semántica
url http://hdl.handle.net/20.500.12008/3410