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).

Habilidades: Java

Ver más: 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

Información del empleador:
( 0 comentarios ) United States

Nº del proyecto: #1290630

1 freelancer está ofertando el promedio de $100 para este trabajo


Hired by the Employer

$100 USD en 2 días
(19 comentarios)