Learn how to convert human-readable text into machine-readable data using the StringTokenizer
and StreamTokenizer
classes in Java.
This project demonstrates lexical analysis by breaking down text into tokens using Java's built-in tokenizing classes. The primary classes used are:
StringTokenizer
StreamTokenizer
LexicalAnalyser.java
: Contains the main logic for the lexical analyzer.Parse.java
: Handles parsing logic.LICENSE
: The project is licensed under the Apache-2.0 license.
To run the lexical analyzer:
- Clone the repository:
git clone https://github.com/ahmedrafat-SW/Lexical-Analyzer.git
- Compile the Java files:
javac LexicalAnalyser.java Parse.java
- Run the analyzer:
java LexicalAnalyser
This project is licensed under the Apache-2.0 License.
- Java
- Lexical Analysis
- Compiler Design
- Automata Theory