home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!esonvm2.VNET.IBM.COM
- From: fleurey@esonvm2.VNET.IBM.COM (Claude Fleurey)
- Message-ID: <19930105.055901.28@almaden.ibm.com>
- Date: Tue, 5 Jan 93 14:54:49 FST
- Newsgroups: comp.lang.prolog
- Subject: Processing syntax errors within DCG rules
- Disclaimer: This posting represents the poster's views, not those of IBM
- News-Software: Usenet 3.1
- Lines: 13
-
- I am looking for a scheme allowing to write DCG rules abble to process
- efficiently syntax errors:
- . to display relevant error messages
- . to re-establish (eventually) the parsing process.
-
- I found the naive approach - introducing 'catch-all' grammar rules -
- not enough precise. Being more deterministic, on the other hand,
- decreases the declarative aspect of the rules and leads consequently
- to a more tedious overall design ...
-
- Thank you
-
- Claude Fleurey
-