Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: Evangelos Drikos Newsgroups: comp.compilers Subject: Re: LR(1) Parsing : Error Handling & Recovery Date: Mon, 21 Jul 2014 15:20:49 +0300 Organization: An OTEnet S.A. customer Lines: 10 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <14-07-049@comp.compilers> References: <14-07-023@comp.compilers> <14-07-024@comp.compilers> <14-07-030@comp.compilers> <14-07-031@comp.compilers> <14-07-038@comp.compilers> <14-07-039@comp.compilers> <14-07-040@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: miucha.iecc.com 1405951903 16375 2001:470:1f07:1126:0:676f:7373:6970 (21 Jul 2014 14:11:43 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 21 Jul 2014 14:11:43 +0000 (UTC) Keywords: parse, comment Posted-Date: 21 Jul 2014 10:11:43 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1339 On 7/20/14, 2:38 AM, Hans Aberg wrote: >> A GLR parser splits the parses in face of an ambiguity, which might be >> used instead. Bison supports this, but currently the actions during a >> parse split are not executed, and so cannot set context variables for >> the lexer, until the merge. In short, your idea can be applied only as a hack; it might work sometimes, depends on the grammar. If that is what you meant we don't disagree. [In my experience, it's a rare parser that is useful and doesn't depend on some hacks. -John]