Skip to content

1 min

Bachelor thesis: cross-language integration for the CLR

Compiling JavaScript to .NET IL by pairing a Coco/R-generated parser with Roslyn's syntax trees.

First published on dinu.at. Ported here with its figures.

A "keep calm and write bachelor thesis" poster.

Cross-language integration for the Common Language Runtime of the .NET Framework

Institute: University of Applied Sciences Upper-Austria
Field of Study: Software Engineering

Prelude

The basic idea is to translate any programming language code into .NET Intermediate Language (IL) code by using the open source .NET Compiler Platform (Roslyn). Roslyn uses an abstract syntax tree (AST) to generate IL code. To transform JavaScript into a representative AST we can make use of a compiler generator such as Coco/R. The compiler generator uses an attributed gramma (ATG) to describe the corresponding behavior of a target language. With an ATG form it is possible to extract the required AST form and to use Roslyn for the IL code generation.

The thesis is titled Cross-Language Compiler using Roslyn and Coco/R for the Common Language Runtime; the implementation is on GitHub.

Documents

← All writing