Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Deliverable P 1 Scanner / Lexical Analyzer ( 1 0 0 pts ) Due 7 / 7 / 2 4 at 1 1

1. Deliverable P1 Scanner / Lexical Analyzer (100 pts) Due 7/7/24 at 11:59 PM
Develop a complete scanner. Write a short report describing the work performed, include the source code, and show the input and output. You must show the execution of this program by using appropriate input files and the program must show a list of the tokens scanned. Write a short report with READABLE screeshots of your execution output, then your report describing the work performed, followed by (just) your scanner code copied and pasted as text. In addition, submit copies of your source code files. If you have more than 5 source code files, please submit your files as zip file.
2. Deliverable P2 Parser / Syntax Analyzer (100 pts) Due 7/14/24 at 11:59 PM
Develop a complete parser that executes with the scanner. You must show the execution of this program by using several relevant source lines as input, the program must show the corresponding statement recognized. Write a short report with READABLE screeshot of your execution output, then your report describing the work performed, followed by (just) your parser code copied and pasted as text. In addition, submit copies of your source code files. If you have more than 5 source code files, please submit your files as zip file..
3. Deliverable P3 Interpreter (100 pts) Due 7/28/24 at 11:59 PM
Develop a complete interpreter that includes the scanner and parser. You must show the execution of this program by using the relevant source line as input, the program must show the results after executing the statement recognized by the parser. Write a short report with READABLE screeshots of the output, then your report describing the work performed, followed by (just) your interpreter code copied and pasted. In addition, submit copies of your source code files. If you have more than 5 source code files, please submit your files as zip file.
Review Project-Assignment-And-Submission-Guidelines for details on submitting to D2L
As always 10% late penalties, per day, are in effect for each deliverable.
Grammar for the Julia language
Syntax Analyzer
-> function id () end
->|
->|||
|
-> if then else end
-> while do end
-> id
-> repeat until
-> print ()
->
-> le_operator | lt_operator | ge_operator | gt_operator | eq_operator | ne_operator
->||
-> add_operator | sub_operator | mul_operator | div_operator
Lexical Analyzer
id -> letter
literal_integer -> digit literal_integer | digit assignment_operator ->=
le_operator -><= lt_operator ->< ge_operator ->>=
gt_operator ->> eq_operator ->== ne_operator -> ~= add_operator ->+ sub_operator ->- mul_operator ->* div_operator ->/

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions