Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 a . Briefly describe Javacc as an example of compiler compiler. 2 b Given a simple database of results processing, the database consists of

2a. Briefly describe Javacc as an example of compiler compiler.
2b Given a simple database of results processing, the database consists of tables for
COURSES, STUDENTS, and RESULTS. The COURSES table lists pertinent data for
each course such as the course title and course code. The STUDENTS table lists
data such as matric number and names of students. The RESULTS table lists
pertinent data for each result obtain by each student. It should be possible to issue
queries against this database such as:
student = "Ogundeji Stephen" and course ="csc533" and course ="csc306"
(student = "Ogundeji Stephen" and course="csc533") or course="csc306"
student =" Ogundeji Stephen " and (courses="csc533" or course="csc306")
i. Create a context free grammar file as input which will enable JavaCC to generate
a parser for the above query.
ii. Discuss the possible output files produced by
Javacc for this problem
please read the question from the picture
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions