/EasyComp-Compiler

Primary LanguageC++GNU General Public License v3.0GPL-3.0

EasyComp Compiler

This is a compiler for a simple made-up programming language "EasyComp". This language was created as the final project of the Compilers subject at the CEFET-MG University, Brazil, taken in the the first semester of the year of 2022.


Compiling

Dependencies:

g++
cmake

Build:

cmake .
cmake --build .

Usage

./Compiler file

Language Specification

This language supports the following features:


Types:

  • Integers
  • Floats
  • Chars
  • Strings

Arithmetic Operations:

  • Addition
  • Subtraction
  • Multiplication
  • Division

Relational Operations:

  • Equal
  • Not Equal
  • Greater Than
  • Less Than
  • Greater or Equal
  • Less or Equal

Loops:

  • While
  • Repeat Until

Special Operations:

  • Read
  • Write