Re: Guide for the creation of translators by RD parser generators

Detlef Meyer-Eltz <Meyer-Eltz@t-online.de>
8 Oct 2005 17:26:46 -0400

          From comp.compilers

Related articles
Guide for the creation of translators by RD parser generators Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2005-10-07)
Re: Guide for the creation of translators by RD parser generators Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2005-10-08)
| List of all articles for this month |
From: Detlef Meyer-Eltz <Meyer-Eltz@t-online.de>
Newsgroups: comp.compilers
Date: 8 Oct 2005 17:26:46 -0400
Organization: Compilers Central
References: 05-10-059
Keywords: parse
Posted-Date: 08 Oct 2005 17:26:46 EDT

> 3. Develop top down!


I just discoverd errors in my book-description under point 3. Sorry, I
didn't test the grammar. Now it really works. As an additional
explanation: SKIP recognizes all text up to the tokens, which can
follow on SKIP


The first improvement should be:


Book ::= SKIP? Chapter+


Chapter ::= TITLE SKIP


TITLE ::= \d\.[^\r\n]+ // as example, if you take the guide text as a
book




After the second improvement, the grammar would be


Book ::= SKIP? Chapter+


Chapter ::= TITLE Paragraph+


Paragraph ::= EOL+ SKIP


TITLE ::= \d\.[^\r\n]+


--
mailto:Meyer-Eltz@t-online.de


url: http://www.texttransformer.de
url: http://www.texttransformer.com


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.