Skip to content

NourAyman10/Compiler_Theory_Project_tiny_language

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 

Repository files navigation

Tiny Compiler

Fully implemented Scanner and Parser for Tiny Compiler

Features

  • A program in TINY consists of a set of functions (any number of functions and ends with a main function).

  • Each function is a sequence of statements including (declaration, assignment, write, read, if, repeat, function, comment, …).

  • Each statement consists of (number, string, identifier, expression, condition, …).

Usage/Examples

/* Sample program in Tiny language – computes factorial*/

int main()
{

int x;
read x;     /*input an integer*/
if x > 0 then     
  int fact := 1;
  repeat
      fact := fact * x;
      x := x – 1;
  until x = 0
  write fact; /*output factorial of x*/
end
return 0;
}

Overview

Test Code with Syntex Error

Test Code without Error

Documentation

Language Description

Developers

About

This is a simple compiler project in C# programming language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%