Implement a lexical analyzer for this language. Make sure to write out the grammar for the LA (include it in a comment).
I strongly recommend you create a separate LexicalAnalyzer class with a definition similar to this:
LexicalAnalyzer(String expression); // constructor
boolean get_token(Token token); // get next token from expression
private boolean scan_number(char c); // scan a real number
The method scan_number could just be your convert from exercise #2, or you can use language-provided conversions. Note this passes/returns a Token, so you&acirc;€™ll have to define that on your own (look at the slides and make sure you include all parts required in the token).