Compilers project in Java using parser Jlex(Jlex optional)
$30-250 USD
Paid on delivery
Lexical Analyzer for Decaf
Implement the lexical analyzer for the source language Decaf.
Design of your lexical analyzer:
1. Choose the implementation language and implementation technique, whether your own or the use of
a package.
2. Define the character set.
3. Design the token types, values and actions.
Implement the lexical analyzer:
4. Remove comments and white space
5. Keep track of line numbers
6. Set up a framework for error reporting and report lexical errors, deciding whether the scanner will
report all errors or will give error reporting information to other parts of the compiler.
7. Define a regular expression for each token type
8. Implement the actions
Test the lexical analyzer:
9. Define test cases and expected results output
10. Give testing results
Sample Decaf program:
PROGRAM simple
this
is a comment
x : INTEGER;
b : INTEGER;
BEGIN
PRINTLN "Hello, world";
x := 42;
b := (x = 42);
PRINT "x = ";
PRINTLN x;
END
More documents related to this will be given to interested candidates.
Project ID: #628977
About the project
Awarded to:
Dear sir, I'm interesting in your project. I see that this is a assignment for compiler object. I have finished 1 assignment like this when I learn compiler, it's easy to implement. Please me do it. Thank you very More