Skip to content

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

Notifications You must be signed in to change notification settings

haronbh/Lexical-analyzer-with-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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+}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages