- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Explain Type-1 grammar in TOC
Chomsky Hierarchy represents the class of languages that are accepted by the different machines.
Chomsky hierarchy
Hierarchy of grammars according to Chomsky is explained below as per the grammar types −
Type 0. Unrestricted grammars
Turing Machine (TM)
Type 1. Context-sensitive grammars
Linear Bounded Automaton (LBA)
Type 2. Context-free grammars
Pushdown Automaton (PDA)
Type 3. Regular grammars
Finite Automaton (FA)
Type-1 Context Sensitive Grammar (CSG)
- Type 1 grammar is also known as context sensitive grammar
- The context sensitive grammar is used to represent context sensitive language
The CSG follows some rules, which are as follows −
- The context sensitive grammar may have more than one symbol on the left hand side of their production rules.
- The number of symbols on the left-hand side must not exceed the number of symbols on the right-hand side.
- The rule of the form A->epsilon is not allowed unless A is a start symbol. It does not occur on the right-hand side of any rule.
- The type 1 grammar has to be in Type-0.
- In type 1 production should be in the form of V->T.
- The count symbol in V is less than or equal to T.
Example
S->AB
AB->abc
B_>b
- Related Articles
- Explain Type-0 grammar in TOC
- Explain Type-2 and Type-3 Grammar in TOC?
- Explain the concept of grammar in TOC
- Explain about left linear regular grammar in TOC
- Explain Operator grammar and precedence parser in TOC
- Explain the relationship between grammar and language in TOC
- Explain the simplification of context free grammar in TOC
- Explain type 2 grammar with properties
- What is unambiguous grammar in TOC?
- What is type 3 grammar? Explain its properties
- What do you mean by ambiguity in grammar in TOC?
- How to convert FA to Left Linear Grammar in TOC?
- What do you mean by grammar and production in TOC?
- Explain Arden’s Theorem in TOC.
- Explain Chomsky hierarchy in TOC

Advertisements