home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / prolog / 2317 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  853 b 

  1. Path: sparky!uunet!esonvm2.VNET.IBM.COM
  2. From: fleurey@esonvm2.VNET.IBM.COM (Claude Fleurey)
  3. Message-ID: <19930105.055901.28@almaden.ibm.com>
  4. Date: Tue, 5 Jan 93 14:54:49 FST
  5. Newsgroups: comp.lang.prolog
  6. Subject: Processing syntax errors within DCG rules
  7. Disclaimer: This posting represents the poster's views, not those of IBM
  8. News-Software: Usenet 3.1
  9. Lines: 13
  10.  
  11.    I am looking for a scheme allowing to write DCG rules abble to process
  12.    efficiently syntax errors:
  13.      . to display relevant error messages
  14.      . to re-establish (eventually) the parsing process.
  15.  
  16.    I found the naive approach - introducing 'catch-all' grammar rules -
  17.    not enough precise. Being more deterministic, on the other hand,
  18.    decreases the declarative aspect of the rules and leads consequently
  19.    to a more tedious overall design ...
  20.  
  21.    Thank you
  22.  
  23.    Claude Fleurey
  24.