From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E5ACABBAF for ; Sat, 17 Jul 2010 22:03:05 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhICABapQUzRVaA0kGdsb2JhbACfaggVAQEBAQkJDAcRAx+udoIQhQ0uiFQBAQMFhSAEhACEVw X-IronPort-AV: E=Sophos;i="4.55,219,1278280800"; d="scan'208";a="66597213" Received: from mail-pw0-f52.google.com ([209.85.160.52]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Jul 2010 22:03:05 +0200 Received: by pwi7 with SMTP id 7so1543801pwi.39 for ; Sat, 17 Jul 2010 13:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=qm9dyveSgVN5LOGcTDkPcIZR4c0scJENjTzIvauk4Cg=; b=HqkHQicz/3P7esk7+nEOHvr+hMHH78ojaIlr6XSFvN9VK9d8fwY34oaYyXeWnUV3IT jhMOXOR2ptUUv510lf3Uqyp1eMGxBaWU2TT5LPcoREZbBIzqfgzHTJvlLpcxtfaH5Lab rK8Fh/0LkqY7XY3MkRoHSaojkWqVxS8sap5RM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=JtbZqdB/gYt9w7au1F3pDekjbblDl34xtyUVGI/nSaR01vTIn6uwivL21eTR+G/Ti6 c7yIDx+6XCcWgFDPijVE8ecWY8cf4Yj1sqUKRj+G7DmapCWPEBIqn6lzkBs9gs1JJu3Q LdVMnP9szKpr0oLfH+FDoTH9FX/eeA+0Qxi/A= Received: by 10.114.113.18 with SMTP id l18mr3868797wac.220.1279396983696; Sat, 17 Jul 2010 13:03:03 -0700 (PDT) Received: from [192.168.0.34] (c-24-5-88-93.hsd1.ca.comcast.net [24.5.88.93]) by mx.google.com with ESMTPS id s5sm45271556wak.0.2010.07.17.13.02.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Jul 2010 13:02:14 -0700 (PDT) From: Warren Harris Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: ocamlyacc error recovery Date: Sat, 17 Jul 2010 13:00:33 -0700 Message-Id: <7F726E52-8F0E-4421-A996-C44BDCD5E122@gmail.com> To: caml-list caml-list Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Spam: no; 0.00; ocamlyacc:01 ocamlyacc:01 tokens:01 pointers:01 warren:98 warren:98 token:01 parse:02 parse:02 stream:04 i'd:06 docs:07 wondering:09 perform:11 attempting:11 I was wondering if it was possible for ocamlyacc to perform error = recovery by attempting to insert a token in the stream and continuing to = parse. The docs indicate that the error recovery mechanism is mostly = centered around discarding tokens, but in this case I'd like to attempt = to insert a close-delimiter to see if the parse can continue. Thanks for = any pointers, Warren=