home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol039 / example2.gmr < prev    next >
Encoding:
Text File  |  1984-04-29  |  203 b   |  12 lines

  1. $ EXAMPLE GRAMMAR FROM PAGE 264 OF COMPILER DESIGN THEORY
  2. <S> -> <A> <B>;
  3. <S> -> 'b' <C>;
  4. <A> -> ;
  5. <A> -> 'b';
  6. <B> -> ;
  7. <B> -> 'a' <D>;
  8. <C> -> <A> <D>;
  9. <C> -> 'b';
  10. <D> -> 'a' <S>;
  11. <D> -> 'c';
  12.