Lex Analyzer
This is a C++ lexicon analyzer implemented using Java. With a specified input file, it will analyze the lexicon stream and generate an output file named lex.xml
with stream
, symbols
, and constants
list inside of it.
How to use this:
-
Compile(Please make sure you have installed JDK in your computer for compiling)
cd LexAnlzer
javac src/*.java
-
Run(Please make sure you have installed JDK/JRE in your computer)
java src/Analyzer
input.cpp
Replace input.cpp with your own specified input file name.