Using a parser generator in next generation VCL compiler

Marcus Rueckert darix at web.de
Fri Dec 22 16:13:13 CET 2006


On 2006-12-22 13:23:41 +0000, Poul-Henning Kamp wrote:
> In message <458BD522.3090304 at linpro.no>, =?ISO-8859-1?Q?Knut_Aksel_R=F8ysland?=
>  writes:
> 
> >I have spent most time looking at the internals of the VCL-compiler.
> >[...]
> 
> >Any thoughts?
> 
> I deliberately didn't use lex/yacc in v1 because the VCL language
> is so simple but mostly because I wanted strong error handling.
> 
> YACC generated grammers and LEX generated lexers have horrible
> error detection and reporting.

did you look at ragel: http://www.cs.queensu.ca/home/thurston/ragel/ ?
a real life example: http://rubyforge.org/viewvc/trunk/ext/http11/?root=mongrel

    darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org



More information about the varnish-dev mailing list