This VCL compiler thing...
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Mar 10 13:05:36 CET 2006
In message <ujrmzfyfs1o.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= writes:
>"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>> Finally I have decided to enforce proper types and units throughout,
>> so if you compare a time variable, you must specify the units:
>>
>> if (obj.ttl < 10m)
>
>Excellent. I thought about this, but forgot to mention it. It gives
>us all the advantages of Hungarian notation without any of the
>disadvantages (such as having to use Hungarian notation) :)
:-)
>> The compiler so far is 900 lines of C-code and a 170 line tcl script
>> to generate some C-code for keyword recognition.
>
>I imagine the Tcl script will be replaced with lex/yacc at some point?
My plan was to run the tcl script by hand and check both the script
and the result into the tree.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev
mailing list