English

A Type System for Data Flow and Alias Analysis in ReScript

Logic in Computer Science 2024-11-01 v1 Programming Languages

Abstract

ReScript is a strongly typed language that targets JavaScript, as an alternative to gradually typed languages, such as TypeScript. In this paper, we present a sound type system for data-flow analysis for a subset of the ReScript language, more specifically for a lambda-calculus with mutability and pattern matching. The type system is a local analysis that collects information about variables that are used at each program point as well as alias information.

Keywords

Cite

@article{arxiv.2410.23984,
  title  = {A Type System for Data Flow and Alias Analysis in ReScript},
  author = {Nicky Ask Lund and Hans Hüttel},
  journal= {arXiv preprint arXiv:2410.23984},
  year   = {2024}
}

Comments

In Proceedings FROM 2024, arXiv:2410.23020. A full version of this paper is available at arXiv:2408.11954

R2 v1 2026-06-28T19:42:58.357Z