https://github.com/haronbh/lexical-analyzer-with-java
Java program serves as a lexical analyzer that validates a specific pattern within a given string. The validation is done based on predefined rules, and it checks if the input string conforms to a certain structure
https://github.com/haronbh/lexical-analyzer-with-java
compilation java lexical-analysis lexical-analyzer parser
Last synced: about 2 months ago
JSON representation
Java program serves as a lexical analyzer that validates a specific pattern within a given string. The validation is done based on predefined rules, and it checks if the input string conforms to a certain structure
- Host: GitHub
- URL: https://github.com/haronbh/lexical-analyzer-with-java
- Owner: haronbh
- Created: 2024-07-01T22:16:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T20:28:04.000Z (almost 2 years ago)
- Last Synced: 2025-06-05T22:07:06.070Z (about 1 year ago)
- Topics: compilation, java, lexical-analysis, lexical-analyzer, parser
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lexical analyzer with java
Java program serves as a lexical analyzer that validates a specific pattern within a given string. The validation is done based on predefined rules, and it checks if the input string conforms to a certain structure.
## Description of the Lexical Analyzer Example
The provided Java program reads a string from the user and checks if it conforms to a specific pattern. The pattern rules are:
"" The string starts with one or more 'a' characters.
Followed by a single 'd' character.
Followed by zero or more 'b' characters.
Ending with one or more 'c' characters.
Language:
L={aa*db∗c+}