Wild-Queue / imperative-language-compiler

A tool for running code written in an imperative programming language. This tool provides the ability to run code written in a toy imperative programming language by translating the code into C# code (and then running it using .Net) or by translating it directly into the .Net CIL. It also performs a type checking before running the code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About The Project

We implemented a compiler based on C++ for given Imperative programming language. See grammar of this language.

Usage

Prerequisites: bison, ILASM from .NET build tools. There are three options to run compiler:

  1. Compile to C# language and run.
make run file="your_file"
  1. Compile to CIL and run.
make run-cil file="your_file"
  1. Run tests from tests forder.
make test

Authors of the project

Egor Shalagin, Vladislav Spigin, Maxim Latypov and Arseniy Rubtsov

About

A tool for running code written in an imperative programming language. This tool provides the ability to run code written in a toy imperative programming language by translating the code into C# code (and then running it using .Net) or by translating it directly into the .Net CIL. It also performs a type checking before running the code.


Languages

Language:C++ 53.4%Language:C 41.2%Language:Yacc 3.3%Language:Lex 1.1%Language:Makefile 0.5%Language:C# 0.5%