Skip to content

kiraaCoding/simple-flex-and-bison-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-flex-and-bison-compiler

a simple compiler with semantic errors traitement realized with flex and bison .

Features:

Lexical Analysis:

The lexical analyzer is generated using Flex to tokenize the input source code.

Syntax Parsing:

Bison is employed to generate the parser, ensuring correct syntax parsing and abstract syntax tree (AST) generation.

Semantic Analysis:

double declaration

no declared variable

division by zero

no declared function

incompatibility of types

size of inteegers and and floats

Instructions :

Clone this repository. You will need flex, bison, and gcc installed on your machine. Enter the CMD,and tap commande.bat then ENTER . for checking with the example : comp.exe<synta1.txt

About

a simple compiler with semantic errors traitement realized with flex and bison .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published