Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello the name of the course is complier.please try your best to answer all the question for me thank you. Part Two: single choice 1.

hello the name of the course is complier.please try your best to answer all the question for me thank you.
image text in transcribed
image text in transcribed
Part Two: single choice 1. The main function of the syntax analyzer is (). A. Recognize various grammatical units from the word stream, and judge whether the input string conforms to the grammatical rules. B. Recognize each word from the source program. C. Translate the input string into a certain form of intermediate code. D. Explain what is syntax. 2. Chomsky divides syntax into four types, namely type 0, type 1, type 2, and type 3. The type 3 syntax is: ( ) A regular syntax B. context-free syntax C. attribute syntax D. operator precedence syntax 3. The following description of DFA is wrong() A. is the only final state B. is the only initial state C. The state transition function is a single-valued mapping D. does not contain a transition are marked with empty strings 4. Let syntax G[S] be: S->AbBdA->Ab) a B->cd aabbed is a sentence of syntax G, indicating that the handle of this sentence is) A.c B. ab C. a D. d 5. If the syntax is unambiguous, then the opposite of the rightmost derivation is () A.rightmost reduction B. canonical derivation C. canonical reduction D. leftmost derivation 6. The role of the static chain in the activity record is A. establishes the connection between this process and the main calling process B. is used to achieve access to non-local names C. indicates the nesting level of the process D. is used to point to the static data area 7. The core part of LR analyzer is an analysis table, this table includes A. predictive analysis table, state conversion table B. priority relationship matrix, action table C. internal information vector table, symbol table D. action table, state conversion table 8. The inverse Polish form of the expression a*b-{c+d) is A. abcd+ -* B. abcd*+- C. ab*cd+ - D. abed+*. Part Three: Write the phases of a typical decomposition of a compiler. 2, Syntax analysis (parsing techniques) can be divided into two different groups: and 3. A compiler is a program that can read a program in one language and translate it into an equivalent program in another language 4, Please talk about the application solutions of compilation technology

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

Discuss the importance of workforce planning.

Answered: 1 week ago

Question

Differentiate between a mission statement and a vision statement.

Answered: 1 week ago