Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Thank you !! (2 pts) (multiple choice) Which of the following is not necessary for specification of a regular expression used to generate tokens of

image text in transcribed

Thank you !!

(2 pts) (multiple choice) Which of the following is not necessary for specification of a regular expression used to generate tokens of a programming language? 1. a. Alternation b. Concatenation C. Recursion d. Repetition e. None of the above 2. (2 pts) (multiple choice) (CIRCLE ALL THAT APPLY) A DO loop header in Fortran (before Fortran 90) requires the scanner to look-ahead multiple characters because a. Variables need not be declared b. Spaces may occur within identifiers C. The terminator of the DO loop is simply a label, which the parser can ignore d. (1 pt) (true/false) An LL parser recognizes a program via a top-down, predictive technique (1 pt) (true/false) Every LR grammar has a corresponding LL grammar (4 pts) (short answer) Write a regular expression - and/or draw a finite state automaton-that generates C-strings Recall that C-strings are delimited by double quotes ("); may not contain newline characters; and may contain double-quote or backslash characters if and only if those characters are "escaped" by a preceding backslash [Hint: Use the expression not(xi, X2, ..., xn) as shorthand for (yi ly2 |... I ym), where the yi values are all of the characters in the character set other than the xi values. For example, not(*, /) means "any character except* or /". Also, use nl to represent the newline character.] None of the above 3. 4. 5

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

Question

Did you pick a topic that you know all about?

Answered: 1 week ago