编译原理---编译器概念

Quiz 1 Date: 09/06/2018

Some questions about the paper

  1. What is grammarware? Grammarware comprises grammars and grammar-dependent software.

  2. What is Chomskys controversial definition of the “universal grammar?” He think that the essence of human language is the system of principles, conditions, and rules that are elements or properties of all human languages.

  3. Basically, what’s the “research agenda” described in the paper? It promotes an engineering discipline for grammarware.

  4. The authors claim that “Grammarware seems to be second-class software.” What do they mean by this? (talk about refactoring) Grammarware seems to be second-class software. For instance, program refactoring is a well-established practice according to modern object-oriented methodology. By contrast, grammar refactoring is weakly understood and hardly practiced.

  5. The authors ask the question: “what is a good grammar?” How would you address this issue? A good grammar can help programmers to automate many tasks that are tedious and error prone when performed manually. Can help the programmers to find each set of string in the computer languages.

Def: Formally, a grammar G is a four tu-ple (N, T, S, P) where N & T are disjount sets of symbols known as non-terminals and terminals, S ∈ N is the start symbol, and P is a relation on N ∪ T of production rules.

  • N : non-terminals are generally represented as cap letters, and do not appear in the language; they are used to derive sentences in the language.

  • T : terminals are symbols in the language

  • S is one of the non-terminals that indicates where to start when deriving a sentence in the language.

  • P : rules used to derive a sentence.

Terry Tang
Terry Tang
Software Development Engineer

My research interests include distributed robotics, mobile computing and programmable matter.

comments powered by Disqus