Making a lexical Analyzer
I'm working with a Lexical Analyzer program right now and I'm using Java. I've been researching for answers on this problem but until now I failed to find any. Here's my problem: Input: System.out.println ("Hello World"); Desired Output: Lexeme----------------------Token System [Key_Word] . [Object_Accessor] out [Key_Word] . [Object_Accessor] println [Key_Word] ( [left_Parenthesis] "Hello World" [String_Literal] ) [right_Parenthesis] ; [statement_separator] I'm still a beginner so I hope you guys can help me on this. Thanks. You need neither ANTLR nor the Dragon book to write a simple lexical