Re: Delphi/Freepascal parser

Kirill Simonov <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hi Henri,

> 
> I'm rewriting libyaml in pascal language,

Cool!

> actually I have the parser, the scanner and the reader working.
> I don't know where to find yaml documents to experiment all yaml 
> language specifications. If someone know where to find some testing 
> code, I would be very interested.

You may take a look at the PyYAML test suite, in particular, the files
spec-*.* at http://pyyaml.org/browser/pyyaml/trunk/tests/data/.

These are the examples from the YAML spec.  The best feature about the 
examples is that they usually come in two forms, an example itself, and 
a canonical form of it.  The canonical form is written in a small subset 
of YAML, for which an independent parser could be easily written.  While 
developing PyYAML, I was testing it by comparing the output of PyYAML 
parser on the examples and the output of the canonical parser on the 
canonical form of the examples.

I test LibYAML by testing its Python bindings on the PyYAML test suite.

Thanks,
Kirill

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.