Skip to content

creating new compiler using C language , created by French language

Notifications You must be signed in to change notification settings

Ismailharik/C_Compiler

Repository files navigation

Developed a compiler by a French language keywords as a school project using C language. Gained a thorough understanding of the compilation process, including lexical analysis, syntax analysis, semantic analysis, and interpretation

Syntaxe

--> Declaration
variable typeOfVar nameOfVar .
--> Affectation
nameOfVar := value ;
--> Scanning value
lire ( nameOfVar ) ;
--> printing
ecrire ( " letter " ) ;
ecrire ( var ) ;
--> Comparing
si ( var1 operator var2 ) instraction ;
si ( var1 operator var2 ) instraction sinon instruction ;
remarque " si equivalent of if , sinon equivalent of else " .
--> Comments //

The compiler can

--> Detect comments lines .
--> Inform you by the mistakes you made and indicate ( the line, type of Error in Each line ) .
--> Take values of variables by affectations( := ) or from the user input by lire ( ) function .
--> Print the value by ecrire ( ) function .
--> Comparing values by si ( ) function .

Check the Video demontstrative

https://www.youtube.com/watch?v=xmXJp1G0Q20&t=17s&ab_channel=IsmailForeveryone

About

creating new compiler using C language , created by French language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages