Print Email Facebook Twitter Phased Type Checker For Java Title Phased Type Checker For Java: A Type Checker For a Subset of Java Built On Scope Graph Semantics Author Thabet, Omar (TU Delft Electrical Engineering, Mathematics and Computer Science) Degree granting institution Delft University of Technology Programme Computer Science and Engineering Project CSE3000 Research Project Date 2023-06-28 Abstract Traditional type-checking programs are typically designed for specific programming languages, re- sulting in complex and tightly coupled imperative implementations. One of the challenges faced by type checkers is ensuring consistent name-binding resolution in the presence of new names and sym- bols added to the environment. To address this issue, Statix, a domain-specific meta-language for specifying static semantics us- ing scope graphs and constraints aims to reduce the gap between the language specification and the implementation of the type checker. Statix rules define the static semantics of language constructs by employing constraints over type terms and con- straints that define and query a scope graph. To demonstrate this concept, Ministatix, an implemen- tation of the Statix core, is utilized to create a sound type checker for a subset of Java. Ministatix re- solves name bindings in an interleaved manner as the scope graph is constructed. This paper examines an alternative method of us- ing scope graphs for type checking, which involves type checking in separate phases in order to ensure stable queries in the scope graph. Thus avoiding complexities associated with name-binding resolu- tion in Ministatix. We provide an explanation of the required phases and compare the phased type checker to Ministatix in terms of supported Java features, testing, code declarativity and readability, and feature extendability Subject Type CheckingPhased Type Check- ingScope GraphsStable Variable Name Reso- lutionJava Type Checker To reference this document use: http://resolver.tudelft.nl/uuid:f05ab738-0fde-48bc-b3b3-4a8a1345db4c Embargo date 2023-07-31 Part of collection Student theses Document type bachelor thesis Rights © 2023 Omar Thabet Files PDF omar_thabet_rp.pdf 28.1 MB Close viewer /islandora/object/uuid:f05ab738-0fde-48bc-b3b3-4a8a1345db4c/datastream/OBJ/view