Skip to content

Analisador léxico desenvolvido na matéria de Compiladores durante o Curso de Ciências da Computação da Unifacvest.

License

Notifications You must be signed in to change notification settings

edersonhs/Lexical_Analyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lexical Analyser

Lexical analyzer developed in the discipline of Compilers during the Computer Science Course at Unifacvest.

Example Code

1  - print("Ignored Content");
2  - 
3  - @var = 10 //One line comment
4  - 
5  - 34var = 10
6  - 
7  - print(50 == 5)
8  - 
9  - /*
10 - Comment block
11 - to be ignored
12 - */
13 - 
14 - test *= 'Ignored Content';

Output Preview:

preview

Example Language

Rules Example
Identifier cannot start with number 2identifier, 13number, 34var
Only characters defined in the language alphabet are allowed (A...Z), (a...z) (0...9), operators, delimiters
Key_Words Operators Delimiters
int + ;
float - {
string * }
boolean / (
char % )
void = [
double > ]
public < //
private >= /*
igor <= */
vasco ! "
return != '
if == ,
else &
for |
while ++
break --
continue +=
funcao -=
hame
true
false
switch
case
default
print

About

Analisador léxico desenvolvido na matéria de Compiladores durante o Curso de Ciências da Computação da Unifacvest.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages