← Back to team overview

kicad-developers team mailing list archive

Re: Forward-compatibility in s-expression formats

 

On 06/05/14 21:47, Lorenzo Marcantonio wrote:

That said, I think that *if* the sexp reader can traverse automatically
a generic sexp (without having a grammar, only tokenising) we could
decide that it could 'skip' each subexpression starting with an unknown
token. Maybe with warnings:D

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".

Cheers,

John



Follow ups

References