Java Job by spike277777

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:

class LexicalAnalyzer


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’ll have to define that on your own (look at the slides and make sure you include all parts required in the token).

Skills: Java

See more: custom write, boolean, class convert, project analyzer, scan convert, lexical, string expression, convert scan, lexical analyzer, write string class, real comment, implement project, separate project, scan number, parts project, comment project, exercise project, project slides, use convert project project, class exercise, convert class, analyzer, project class, exercise class, project parts

About the Employer:
( 0 reviews ) United States

Project ID: #1290630

1 freelancer is bidding on average $100 for this job


Hired by the Employer

$100 USD in 2 days
(19 Reviews)