Wednesday, 15 May 2013
Monday, 8 April 2013
Chapter 7
Published :
12:44
Author :
White Dove
Concept of Programming Languages by Robert W. Sebesta Answer
Review Questions
1. Define operator precedence and operator associativity.
Operator precedence is a rule used to clarify which procedures should be performed first in a given mathematical expression.
Operator associativity is a property that determines how operators of the same precedence are grouped in the absence of parentheses
Chapter 6
Published :
12:35
Author :
White Dove
Concept of Programming Languages by Robert W. Sebesta Answer
Review Questions
1. What is a descriptor ?
Collection of the attributes of a variable
Chapter 5
Published :
12:23
Author :
White Dove
Concept of Programming Languages by Robert W. Sebesta Answer
Review Questions
1. What are the design issues for names ?
Case sensitivity, special keywords, and reserved word of particular language.
Chapter 4
Published :
12:12
Author :
White Dove
Concept of Programming Languages by Robert W. Sebesta Answer
Review Questions
1.What are three reasons why syntax analyzers are based on
grammars ?
grammars ?
-BNF descriptions of the syntax of programs are clear and concise, both for humans and for software systems that use them.
- BNF description can be used as the direct basis for the syntax analyzer.
- Implementations based on BNF are relatively easy to maintain because of their modularity
3. Define lexeme and token.
Lexeme is logical grouping that consists of collection of characters collected by lexical analyzer. Token is internal code for categories of the lexeme
4. What are the primary tasks of a lexical analyzer ?
It serves as front end of a syntax analyzer.
6. What is a state transition diagram ?
State diagram is a directed graph whose nodes are labeled with state names.
8. What are the two distinct goals of syntax analysis ?
First, syntax analyzer must check the input program to determine whether it is syntactically correct. The second goal is to produce a complete parse tree, or at least trace the structure of the complete parse tree, for syntactically correct input.
7. Who developed the Speedcoding system for the IBM 701 ?
The language was developed by John Backus in 1953 for the IBM.
9. Describe the differences between top-down and bottom-up parsers.
A top down parser builds from root downward to leaves, while bottom up parser builds from the leaves upward to the root
17. Describe the pairwise disjointness test.
It is a test of non-left recursive grammar that indicates whether left recursion can be done. It requires the ability to compute a set based on the RHSs of a given nonterminal symbol in a grammar.
18. What is left factoring ?
Left factoring is the action taken when a grammar leads backtracking while marking parsing/syntax tree.
Subscribe to:
Posts (Atom)
About Me
What Is Programming
"Programming" is thinking, not typing. Most of programming is spent sleeping, walking around, staring out the window, or doing anything else that helps you relax and think.
Quote of The Day
“Courage is the discovery that you may not win, and trying when you know you can lose.”
Archive
Popular Posts
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1. In what year was Plankalkul designed ? in what year ...
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1. Why is it useful for a programmer to have some back...
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1.What are three reasons why syntax analyzers are base...
-
The Terminal is about a man who trapped in a terminal at New York's John F. Kennedy International Airport when he is denied entry into...
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1. What are the design issues for names ? Case sensi...
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1. Define syntax and semantics . Syntax is form o...
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1. What are the three characteristics of subprogram? ...
-
Buku ini sekarang merupakan international bestselling. Awalnya, gue tertarik sama buku ini gara-gara cover dan judulnya yang menarik. ...
-
Concept of Programming Languages by Robert W. Sebesta Answer Review Questions 1. What are the two kinds of abstractions in programmi...
