# Unitino - Arduino with units
Navigate to Release and download the Compiler.exe. Now just run the Compiler.exe in the terminal with ./Compiler.exe
Note that the .pdb file is optional, however if you get a critical error, having this file next to the executeable allows better debugging.
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.
Hava Java installed and ensure it is in the PATH variable - check this by running java --version
in any cmd
This solution is created in Rider IDE by Jetbrains and uses configurations for the IDE to have a quick workflow
Runs poorly with the Resharper extension
Haven't yet created profiles in the launchsettings file, however it should be possible.
The /.run
folder holds the run configurations
SableCC
configuration compiles the grammar.sablecc3 in the Compiler project
and places the created classes in the /Compiler/SableCC
folderRun
configuration runs the program.cs class as a standard CSharp console appSableCC2
if the SableCC
configuration doesn't workSableCC for the original compiler compiler
Indrek's Tools for adjusting SableCC to generate a C# parser(this is the one in the project)