A Type Safe Calculus for Generating Syntax-Directed Editors

Editor calculi make it possible to describe the actions of syntax-directed editing and provide guarantees of safety through their specialized type system: Well-typed editor scripts produce well-formed programs. So far, such calculi have been language-specific. In this paper we present a generalized editor calculus, which can be used to specify a specialized syntax-directed editor for any language, given its abstract syntax. Moreover we show how to implement an editor generator that allows one to generate an editor calculus-based syntax-directed editor from a language specification. The generalized editor calculus can be encoded into a simply typed lambda calculus, extended with pairs, booleans, pattern matching and fixed points. This implies a general type safety result that holds for any instantiation.

Authors

Institutions

Publication Details

Published
2025-01-10
DOI
https://doi.org/10.1145/3704253.3706140
Citations
1
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Type Safe Calculus for Generating Syntax-Directed Editors

Hans Hüttel, Andreas Tor Mortensen, Nikolaj Rossander Kristensen, Benjamin Bennetzen et al.
1 citations
Logic, programming, and type systems
2.48
article

A Type Safe Calculus for Generating Syntax-Directed Editors

Hans Hüttel, Andreas Tor Mortensen, Nikolaj Rossander Kristensen, Benjamin Bennetzen, Peter Buus Steffensen, Sune Skaanning Engtorp
article en
1 citations

Abstract

Editor calculi make it possible to describe the actions of syntax-directed editing and provide guarantees of safety through their specialized type system: Well-typed editor scripts produce well-formed programs. So far, such calculi have been language-specific. In this paper we present a generalized editor calculus, which can be used to specify a specialized syntax-directed editor for any language, given its abstract syntax. Moreover we show how to implement an editor generator that allows one to generate an editor calculus-based syntax-directed editor from a language specification. The generalized editor calculus can be encoded into a simply typed lambda calculus, extended with pairs, booleans, pattern matching and fixed points. This implies a general type safety result that holds for any instantiation.

University of Copenhagen (DK), Aalborg University (DK)
Openalex Percentile: Top 12%
Logic, programming, and type systems
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Type Safe Calculus for Generating Syntax-Directed Editors — Hans Hüttel, Andreas Tor Mortensen, et al. · (2025) | TGRS Research Map | TGRS