JakobTopholt / P4-Unitino

SW4 project at AAU creating our own compiler
4 stars 0 forks source link

# Unitino - Arduino with units Current status

Index

Note that the .pdb file is optional, however if you get a critical error, having this file next to the executeable allows better debugging.

Contribute

If you implement a new feature in the grammar, then make sure that both prettyprint and codegen has a test that covers the feature to ensure that the language is stable and no grammar features are meaningless. Creating Typechecking and making a test for it is only required if things accepted in the grammar shouldn't be accepted by the compiler such as assign a string to an integer.

Prerequisites

Hava Java installed and ensure it is in the PATH variable - check this by running java --version in any cmd

Rider (recommended)

This solution is created in Rider IDE by Jetbrains and uses configurations for the IDE to have a quick workflow

Visual Studio 2022

Runs poorly with the Resharper extension

Haven't yet created profiles in the launchsettings file, however it should be possible.

Building the project

The /.run folder holds the run configurations

Credits

SableCC for the original compiler compiler

Indrek's Tools for adjusting SableCC to generate a C# parser(this is the one in the project)