A lexical Analyzer for Java created using C++. The program takes a java file as input and scans the whole file. It categorizes each token of the program as one of the following:
- SEPARATOR
- IDENTIFIER
- OPERATOR
- LITERAL
- KEYWORD
- FUNCTION ARGUMENT
Execution Steps
- Copy all the files in a folder.
- Run the file "lexicalAnalyzer.cpp" on any gnu g++ compiler.
- Input the file path on the console and hit Enter!
Note: Some Sample Java files (testFile_1.java, etc.) have also been added to the repository for input.