[cad-linux-dev] YAML file format examples

  • From: Bruno Postle <bruno@xxxxxxxxxx>
  • To: CAD linux development <cad-linux-dev@xxxxxxxxxxxxx>
  • Date: Tue, 21 Sep 2004 12:44:50 +0100

I've nearly finished adding YAML back-end support to 'Draft', though 
there is still some code to clear-up and I haven't done any testing 
with more than a handful of entities.

Here are a couple of my test files, notice that they are a little 
different to previous efforts:

  --- #YAML:1.0
  copyright:
    - Bruno Postle <bruno@xxxxxxxxxx>
  license: http://creativecommons.org/licenses/sa/1.0/
  points:
    -
      - 169.948700309612
      - 117.199167378543
      - 0
    -
      - 326.598589039623
      - -222.773180879367
      - 0
  type: line
  units: mm
  version: draft1


  --- #YAML:1.0
  copyright:
    - Bruno Postle <bruno@xxxxxxxxxx>
  ignore:
    - '../data/arrow.drawing/1.line'
  license: http://creativecommons.org/licenses/sa/1.0/
  location:
    - '../data/arrow.drawing/'
  points:
    -
      - -40.265890674358
      - 122.616037174381
      - 0
  type: reference
  units: mm
  version: draft1


I intend to make it so that the copyright, ignore, license, units & 
version attributes are optional - Is there anything I've missed?

-- 
Bruno

Other related posts: