Lexical analysis for compilers with error detection.
EXTLex is a lexical analyser for compilers. It is developed in Java and provides a framework for error detection during lexical analysis.
Since EXTLex is a pre-compiled Java project, it requires no installation. Simply make sure you have Java >1.8 installed in your machine, download the project and place it in a folder of your choice.
To run EXTLex, you will first need to provide the input files it requires, which are:
For more information on how to create the Automata File and the Reserved Words File, please refer to the "Creating a language for EXTLex.pdf" guide included in this project. Once you have produced all required files, simply run the following command line:
java -jar EXTLex.jar <automata_file> <reserved_words_file> <code_file>
The output will be provided in STDOUT. You can also import EXTLex into your Java project and use its classes and functions to create your own compiler.
If you have any problems or questions about the toolkit, simply report it in the issues section of the project's Github page.