• A context-sensitive grammar is a formal grammar in which each production rule is either of the form or of the form where:
  • The term context-sensitive comes from the fact that the production rules are sensitive to the context ( and ) in which a variable appears. By contrast, in a context-free grammar, the left-hand side of a production is a single variable, with no context surrounding it.
  • As defined, the string is not allowed to be empty. Without this restriction, the resulting grammars become equal in power to unrestricted grammars.

Linear Bounded Automaton

chapter 5