Skip to content

Compilers Craft is a simple programming language compiler similar to C++ built using Flex and Bison and a simple GUI for testing.

Notifications You must be signed in to change notification settings

asmaaadel0/Compilers-Craft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 Table of Contents

About

  • Compilers Craft is a simple programming language compiler similar to C++.
  • Compilers Craft is handling the most common data types like integers, floats, bools, char and strings.
  • Compilers Craft is supporting:
    • Variables and Constants declaration.
    • Mathematical, logical, and bitwise expressions.
    • Assignment statements.
    • If-then-else statement, while loops, do-while loops, for loops, switch statement.
    • Block structure (nested scopes where variables may be declared at the beginning of blocks).
    • Functions.

Tools and Technologies used

  • GCC:
    • GNU Compiler Collections which is used to compile mainly C and C++ language.
  • Flex:
    • Faster scanner generator like lex.
  • Bison:
    • Parser generator like yacc.
  • tkinter:
    • Python library for implementing GUI.

How to run

  • Using terminal:
    • flex lexer.l
    • bison -d parser.y
    • gcc *.c -o out.exe
    • write your Code inside a file, for example in.txt
    • .\out.exe in.txt
  • Using GUI:
    • Open CMD in the GUI directory, type python gui.py
    • Write your Code inside
    • Press Compile!

Screen video

video.mp4

Contributors

Asmaa Adel
Asmaa Adel
Asmaa Adel
Samaa Hazem
norhan reda
Norhan reda
HodaGamal
HodaGamal

About

Compilers Craft is a simple programming language compiler similar to C++ built using Flex and Bison and a simple GUI for testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published