Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Chris F Clark <cfc@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Apr 2008 17:09:26 -0400
Tegiri Nenashi <TegiriNenashi@xxxxxxxxx> writes:
Not only that but terms like aXa were also wrong. How about
Y = YaYbY + YbYaY + 1
That looks much better. Each Y introduces an equal number of a's and
b's.
For those who don't understand his notation, it is the style Mark
Williams-Hopkins uses and equivalent to the more common yacc-style
notation:
Y : Y a Y b Y
| Y b Y a Y
| /* empty */
;
or the BNF:
<Y> ::= <Y> a <Y> b <Y>
| <Y> b <Y> a <Y>
|
.
- 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
- 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: How can I tell if F is a string or if it is a number?
- 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):
Relevant Pages
|