Skip to content

This code is a simple compiler that reads a code file, tokenizes its contents, and displays the resulting tokens in a table. It defines a class called Compiler that contains several static methods for performing these tasks. The readCodeFromFile method reads the contents of the file and returns a list of lines, while the tokenize method takes a lis

Notifications You must be signed in to change notification settings

omarMohammedbenzo/Java-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java-Compiler

This code is a simple compiler that reads a code file, tokenizes its contents, and displays the resulting tokens in a table. It defines a class called Compiler that contains several static methods for performing these tasks. The readCodeFromFile method reads the contents of the file and returns a list of lines, while the tokenize method takes a list of lines and converts them into a list of Token objects. The displayTokensInTable method takes a list of Token objects and displays them in a graphical table using Java Swing. The main method calls these methods in sequence to read the code, tokenize it, and display the resulting tokens.

Screenshot

output

For More Useful project You Can Visit MY PROFILE ACCOUNT💖

About

This code is a simple compiler that reads a code file, tokenizes its contents, and displays the resulting tokens in a table. It defines a class called Compiler that contains several static methods for performing these tasks. The readCodeFromFile method reads the contents of the file and returns a list of lines, while the tokenize method takes a lis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages