Re: stumped by tricky logic

2006-01-29 Thread Paul McGuire
"Dave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So I'm trying to write a CSS preprocessor. > > I want to add the ability to append a selector onto other selectors. > So, given the following code: > = > #selector { > >

Re: stumped by tricky logic

2006-01-29 Thread Roy Smith
"Dave" <[EMAIL PROTECTED]> wrote: > So I'm trying to write a CSS preprocessor. What you're trying to do is write a parser. I don't know CSS, so I can't comment on the details, but basically, you're trying to parse a non-trivial language. It is usually hopeless to try and write a parser using j

Re: stumped by tricky logic

2006-01-29 Thread Max
Dave wrote: > So I'm trying to write a CSS preprocessor. > > I want to add the ability to append a selector onto other selectors. > So, given the following code: > = > #selector { > > { property: value; property: value; } >

stumped by tricky logic

2006-01-29 Thread Dave
So I'm trying to write a CSS preprocessor. I want to add the ability to append a selector onto other selectors. So, given the following code: = #selector { { property: value; property: value; } .other_selector { property: