Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Lech Duraj <lduraj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 01:13:47 +0200
How about this:
S = 1 + A S B C
B C = C B
C B = B C
A B = B A
B A = A B
A C = C A
C A = A C
A = a
B = b
C = c
This is not context-sensitive grammar, but is easily converted to one - only commutators (AB = BA etc.) need to be replaced, and this is possible for non-terminals.
Lech
.
- Follow-Ups:
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- References:
- Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Barb Knox
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Chris F Clark
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Lech Duraj
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Prev by Date: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Next by Date: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Previous by thread: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Next by thread: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Index(es):