I wouldn't use %CRC for this, YAML doesn't really go for user-defined directives. One can easily just use a special document:

---
crc: ...
---
a: foo
...

Or some other valid YAML solution.


On Mon, Apr 29, 2013 at 5:30 PM, I Heart Robotics <iheartrobotics@gmail.com> wrote:
|Is there a better way of passing checksums of streams?
The use case is sending YAML data over a serial connection that occasionally gets errors or dropped characters.

%YAML 1.2
%CRC B8C5938E
---
a: foo
b: bar
c: baz
...
%YAML 1.2
%CRC 498BBC05
---
a: alpha
b: beta
c: gamma
...|


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Yaml-core mailing list
Yaml-core@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/yaml-core