[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Functional blocks and PCB format changes



On Mon, Sep 13, 2010 at 04:25:49PM -0700, Steven Michalske wrote:
> pin:
>   pinNumber: 2
>   pinName: "rst"
>   x1: 1234
>   y1: 4321
>   x2: 2345
>   y2: 4321
>   layer: component
> 
> or
> <pin><pinNumber>2</pinNumber><pinName>"rst"<\pinName><x1>1234<\x1><y1>4321<\y1><x2>2345<\x2><y2>5432<\y2><layer>component<\layer><\pin>

I would point out a valid YAML representation of the above is also:

{pin: {pinNumber: 2, pinName: rst, x1: 1234, y1: 4321, x2: 2345, y2: 4321, layer: component}}

and also:

{pin: {pinNumber:
 2, pinName: rst        ,
x1: 1234, y1\
 : 
4321, x2: 2345, y2: 4321, layer: compo\
nent}}

A valid XML representation, using a slightly different schema, is:

<pin
    pinNumber='2'
    pinName='rst'
    x1='1234'
    y1='4321'
    x2='2345'
    y2='5432'
    layer='component'
/>

XML and YAML are equally capable of being made unreadable. Either can be
made more readable by defining a reasonable schema and selecting a
clueful output library.

Neither sed nor awk can process XML or YAML the right way in all cases
without reimplementing a libyaml or libxml in sed or awk.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user