Compilers project in Java using parser Jlex(Jlex optional)

Completed Posted Mar 7, 2010 Paid on delivery
Completed 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.

Java

Project ID: #628977

About the project

8 proposals Remote project Active Mar 8, 2010

Awarded to:

thanhhungqb

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

$30 USD in 4 days
(48 Reviews)
4.9

8 freelancers are bidding on average $122 for this job

kevinxiaozi

Hi Sir, Iam proficient in java programming and I am strong in algorithms and compiler theory and implementation. I am convinced to help you finish the project in high quality and efficiency. I cherish this op More

$120 USD in 7 days
(26 Reviews)
5.3
ITWIZGAF

pls see the pmb...

$220 USD in 12 days
(4 Reviews)
0.0
WebOnPalm

i am interested.

$250 USD in 15 days
(0 Reviews)
0.0
Atrigen

I will implement this using JLex (1.2.6)

$150 USD in 3 days
(0 Reviews)
0.0
surisureshhh

i am suresh,working as assistant Software in engineering in small software company

$50 USD in 10 days
(0 Reviews)
0.0
manishbhaumik

I have 10+ years of IT experience and enough exposure to Java and compilers. So I can do it, if you agree.

$30 USD in 0 days
(0 Reviews)
0.0