December 2021
Beginner
840 pages
47h 29m
English
Context-free grammars, by definition, cannot represent context in language. A classical example of context-sensitivity in English is “the first letter of a sentence must be capitalized.” A context-sensitive grammar8 for this property of English sentences is:
In a context-sensitive grammar, the left-hand side of a production rule is not limited to one non-terminal, as is the case in context-free grammars. In this example, the production rule
only applies in the context of <start> to the left ...
Read now
Unlock full access