Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Lexical Analyzer

The goal of the project is to implement a lexical analyzer that accepts the token categories plus the following keywords, all in lowercase letters only: class, if, null

The lexical analyzer program reads in an input text file, extracts tokens in the text file, and write them out one by one on separate lines. Each token is flagged with its category. The output is sent to an output text file. Whenever invalid tokens are found, error messages are printed, and the reading process continues.

The following is a DFA to accept the 20 token categories. The implementation is based on the DFA below.

dfasp16

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages