← Back to team overview

kicad-developers team mailing list archive

Re: Forward-compatibility in s-expression formats

 

On Wed, May 07, 2014 at 12:48:22AM +0100, John Beard wrote:
> I would have thought this would exactly be done at the end of tokenisation -
> this is when the current parser says "erk, i expected one of 'fp_line',
> 'pad', ...., I give up now, no footprint for you". Instead, what it could do
> is go, "hmm, don't know what this is, I'll keep this bit - up to the
> matching paren - for later in case we save it back, and move on".

More or less, that's the idea :D

There are various ways to do this but all depends on the flexibility
required and the current architecture of the parser. Whole books have
been written on the issue...

-- 
Lorenzo Marcantonio
Logos Srl


Follow ups

References