Compiler for the C written on C#
The compiler is developed on the .NET Core 3.1 platform.
To build it in Windows, I use Microsoft Visual Studio 2019.
After downloading the source, open CCompiler.sln in Visual Studio.
git clone https://github.com/ALMikhai/CCompiler
cd CCompiler/CCompiler/
dotnet build --configuration Release
Execution file will be place in the same directory as the code file
.\CCompiler.exe "Add.c" -net
dotnet Add.exe
- Lexical analyzer
- Parser for simple math expressions
- Parser (AST)
- Semantic analyzer
- Compilation to .net format (Mono.Cecil)
Alexander Mikhailenko - third year student, Far Eastern Federal University