← Back to team overview

kicad-developers team mailing list archive

Re: Parsing new .kicad_pcb files

 

For my Eagle script parser I am using PLY so I would check out a PLY
based version

https://gist.github.com/armornick/2020950
Hope that helps
Edwin

On Thu, Mar 28, 2013 at 11:46 PM, Edwin van den Oetelaar
<oetelaar.automatisering@xxxxxxxxx> wrote:
> maybe you can check here
> http://pyparsing.wikispaces.com/file/view/sexpParser.py
>
> On Thu, Mar 28, 2013 at 8:04 PM, Senthil Seveelavanan
> <s.seveelavanan@xxxxxxxxx> wrote:
>> ... Also I am looking at the output of a simple pcb layout.
>>
>> here is the top 3 lines
>>
>> (kicad_pcb
>>   (version 3)
>>   (host pcbnew "(2013-03-19 BZR 4004)-stable")
>>
>>
>> I am new to s-expressions: Why are some of the strings surrounded by quotes
>> "..." and some are not? Do the strings without quotation marks mean variable
>> or similar?
>>
>> Thanks
>>
>> On Thu, Mar 28, 2013 at 5:49 PM, Senthil Seveelavanan
>> <s.seveelavanan@xxxxxxxxx> wrote:
>>>
>>> Hi all,
>>>
>>> Does any python code exist to assist the parsing of the new .kicad_pcb
>>> pcbnew s-expression based file format? I want to write a simple script to
>>> get/set the placement of tracks/vias etc.
>>>
>>> Thanks
>>>
>>> Senthil
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>


References