Back to search

Chalmers University of Technology

Trees that Grow in the Paragon Compiler - A Step Towards Modularity

Abstract

dc:description.abstract

Paragon is a programming language that extends Java with statically checked information flow control policies. Paragon’s compiler, which is written in Haskell, has a large type checker. Its current implementation is monolithic, making the compiler challenging to develop. Paragon’s authors, Broberg et al., have proposed to partition the type checker into five phases, and this project is a step towards such an implementation. We identify the representation of Paragon’s abstract syntax tree as an essential design aspect and emphasize extensibility to conform to the phases’ varying requirements. Based on a programming idiom, Trees that Grow, by Najd and Jones, we implement an extensible abstract syntax tree in Paragon’s compiler. We observe that our implementation introduces a substantial amount of boilerplate code. To alleviate the issue, we employ several methods for generic programming. We conclude that our AST implementation is extensible but complex.

Degree

thesis:*
Level thesis:degree_level
M2
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2020

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Berggren Sjöblom, Anders
  • Andersson, John
  • Bäckelie, Anders
  • Ljung Ekeroth, Johannes
  • Skystedt, Lukas
  • Terner, Lina
Advisor dc:contributor.supervisor
  • Broberg, Niklas
Committee member dc:contributor.committeemember
  • Sands, David

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX02

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Berggren Sjöblom, Anders; Andersson, John; Bäckelie, Anders; Ljung Ekeroth, Johannes; Skystedt, Lukas; Terner, Lina. Trees that Grow in the Paragon Compiler - A Step Towards Modularity. M2 thesis, 2020. https://hdl.handle.net/20.500.12380/301967