From: barjunk Date: 2007-10-29T03:40:02+09:00 Subject: Re: Racc error recovery On Oct 25, 10:29 pm, Aaron Patterson wrote: > On Thu, Oct 25, 2007 at 02:14:20PM +0900, Giles Bowkett wrote: > > > I'm writing a racc parser, and I need to recover from parse errors. > > ... > > > Unfortunately I can't seem to find any good documentation or examples on > > > error recovery. I've read the Racc documentation about on_error and > > > Wild stab in the dark: is there any equivalent stuff in yacc you could > > use as a starting point? > > Yes there is. I was hoping I could get an answer without digging up my > lex & yacc book. ;-) Fortunately I found it and there is an error > recovery section that has definitely helped. > > > > > I realize it probably isn't modeled that closely, but that's the first > > thought I had. > > > Wild stab in the dark, part 2: tried using Sass instead? It's a CSS > > DSL. Or do you have to work with the CSS you've already got? > > No. I'm trying to parse CSS, not generate it. > > -- > Aaron Pattersonhttp://tenderlovemaking.com/ Aaron, Would you mind sharing some of what you found in the book? I'm more interested in what you were thinking originally and then what the book had to say to change your mind. I'm interested in putting together some more documentation for Racc. Mike B.