RE: includes inside squid.conf

From: Chemolli Francesco (USI) <ChemolliF@dont-contact.us>
Date: Wed, 27 Mar 2002 17:45:34 +0100

> On Tue, 26 Mar 2002, Chemolli Francesco (USI) wrote:
>
> > I've done something similar by turning my squid.conf in a
> > cpp-interpreted file.

> This would require to have a C preprocessor installed, would not it?

Sure, fortunately only where the master configuration-file is kept.

> > Alternatively, we could redesign the configuration parsing engine
> > to be a yacc+lex thing. We'd trade some flexibility
> > (lexically-variable lex parsers are hard to implement - if it's
> > possible at all) in favour of genericity. Of course, this would
> > unfortunately also mean that Robert's generic parser work should
> > be dropped.
>
> I do not have up-to-date information, but lex and yacc were not
> portable enough 5 years ago. They were also huge. I do not know what
> you mean by "lexically-variable lex parsers", but I am sure yacc+lex
> can do everything Squid would ever need. Squid does not need more that
> LALR(1) parser, does it?

How would you suggest having code modules
dynamically register their configuration directives
in a lex+yacc system?
I'm sure it can be done, I'm not sure as to how
without requiring huge hackery.

-- 
	/kinkie 
Received on Wed Mar 27 2002 - 09:47:06 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:54 MST