Awarded

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, scan convert, lexical, string expression, convert scan, real comment, implement project, separate project, scan number, parts project, comment project, exercise project, project slides, project parts

About the Employer:
( 0 reviews ) United States

Project ID: #1290642

1 freelancer is bidding on average $100 for this job

JavaWebGuru

Hired by the Employer

$100 USD in 2 days
(5 Reviews)
6.8