Skip to content

This contains my codes for the ç compiler, ç being the made-up language for this university course

Notifications You must be signed in to change notification settings

EduardoRSeifert/compiladores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

compiladores

This contains my codes for the ç compiler, ç being the made-up language for this university course. The basis for the lexical analysis is a automata with 5 states, each state dealing with a different kind of base tokens:

0 - operators/special characters.

1 - identifiers.

2 - numerical constants.

3 - char constant.

4 - string constant.

The syntax analysis was made using a slr1 parser that generates a map<int,map<string,vector>>, where the int represents the automata state, the string represents the variables(terminal and non-terminal) and the vector contains information about each transition.

The semantic analysis required for this course had 5 types of semantical errors: Conflict in the declaration of variables with an already declared function Use of non-declared variables Use of non-declared functions Redeclaration of variables Redeclaration of functions

About

This contains my codes for the ç compiler, ç being the made-up language for this university course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages