Hide metadata

dc.contributor.authorMoen, Petter Sæther
dc.date.accessioned2021-08-24T23:07:48Z
dc.date.available2021-08-24T23:07:48Z
dc.date.issued2021
dc.identifier.citationMoen, Petter Sæther. Package Template Script: An Implementation of Package Templates in TypeScript. Master thesis, University of Oslo, 2021
dc.identifier.urihttp://hdl.handle.net/10852/87098
dc.description.abstractIn this thesis we will explore how TypeScript can be extended with an additional language mechanism for re-use and adaptation, namely Package Templates. We will look at how Package Templates, which was initially designed for a nominally typed language, will work in a structurally typed language like TypeScript, and what differences this makes for its usage. Package Templates, or as it was originally called, Generic Packages, is a language mechanism first proposed by Krogdahl in 2001. The language mechanism gives the programmer the opportunity to create collections of classes, interfaces and enums which can later be re-used and adapted. These collections can be instantiated inside new collections, where the mechanism allows for renaming classes and its attributes, as well as merging members of the instantiated collections. This enables the programmer to write general collections for concepts such as graphs and lists, and later adapt these to new domains with additional concepts forming collections for domains such as road systems between cities. The result of the work done in this thesis is the Package Templates Script programming language, or just PTS for short, and an easily accessible compiler for the language. This contribution will hopefully make the language mechanism, Package Templates, more accessible for newcomers, and potentially spark further research in the field.eng
dc.language.isoeng
dc.subjectpt
dc.subjectpackage templates
dc.subjecttypescript
dc.subjectnodejs
dc.subjectcompiler
dc.subjecttree-sitter
dc.subjectjavascript
dc.titlePackage Template Script: An Implementation of Package Templates in TypeScripteng
dc.typeMaster thesis
dc.date.updated2021-08-25T22:21:38Z
dc.creator.authorMoen, Petter Sæther
dc.identifier.urnURN:NBN:no-89834
dc.type.documentMasteroppgave
dc.identifier.fulltextFulltext https://www.duo.uio.no/bitstream/handle/10852/87098/1/pettersmoen_thesis.pdf


Files in this item

Appears in the following Collection

Hide metadata