Skip to content

mahbub-hr/Syntax-and-Semantic-Analyzer-in-bison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syntax-and-Semantic-Analyzer-in-bison

A minimal c compiler implementation in flex and bison

Our chosen subset of C language has following characteristics.

  • There can be multiple functions. No two function will have the same name. A function need to be defined or declared before it is called. Also a function and a global variable cannot have the same symbol.
  • There will be no preprocessing directives like include or define.
  • Variables can be declared at suitable places inside a function. Variables can also be declared in global scope.
  • All the operators used in previous assignment are included. Precedence and associativity rules are as per standard. Although we will ignore consecutive logical operators or consecutive relational operators like ‘a && b && c’ ‘a < b < c’.
  • No break statement and switch-case.

To Run:

run script.sh

About

A minimal c compiler implementation in flex and bison

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published