Answered step by step
Verified Expert Solution
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
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. 5Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started