comp.lang.ada
 help / color / mirror / Atom feed
* YAML parser?
@ 2018-03-16 21:24 mockturtle
  2018-03-16 22:20 ` Wesley Pan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: mockturtle @ 2018-03-16 21:24 UTC (permalink / raw)


Dear.all,
the subject says everything: is a YAML parser available (possibly pure Ada, I am a purist :-) )?  The official YAML page 

http://yaml.org/

lists several parser (including Haskell and vimscript, come on! :-), but no Ada...

Thank you in advance

Riccardo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: YAML parser?
  2018-03-16 21:24 YAML parser? mockturtle
@ 2018-03-16 22:20 ` Wesley Pan
  2018-03-16 22:21   ` Wesley Pan
  2018-03-16 22:30 ` joakimds
  2018-03-17  7:17 ` mockturtle
  2 siblings, 1 reply; 8+ messages in thread
From: Wesley Pan @ 2018-03-16 22:20 UTC (permalink / raw)


https://github.com/ytomino/yaml-ada

He also has an XML binding: https://github.com/ytomino/xml-ada



On Friday, March 16, 2018 at 2:24:07 PM UTC-7, mockturtle wrote:
> Dear.all,
> the subject says everything: is a YAML parser available (possibly pure Ada, I am a purist :-) )?  The official YAML page 
> 
> http://yaml.org/
> 
> lists several parser (including Haskell and vimscript, come on! :-), but no Ada...
> 
> Thank you in advance
> 
> Riccardo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: YAML parser?
  2018-03-16 22:20 ` Wesley Pan
@ 2018-03-16 22:21   ` Wesley Pan
  2018-03-16 22:27     ` Wesley Pan
  2018-03-16 22:31     ` Wesley Pan
  0 siblings, 2 replies; 8+ messages in thread
From: Wesley Pan @ 2018-03-16 22:21 UTC (permalink / raw)


Whoops, forgot you wanted a pure Ada implementation instead of bindings...Don't know of any Ada implementations. Sorry.

On Friday, March 16, 2018 at 3:20:04 PM UTC-7, Wesley Pan wrote:
> https://github.com/ytomino/yaml-ada
> 
> He also has an XML binding: https://github.com/ytomino/xml-ada
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: YAML parser?
  2018-03-16 22:21   ` Wesley Pan
@ 2018-03-16 22:27     ` Wesley Pan
  2018-03-16 22:31     ` Wesley Pan
  1 sibling, 0 replies; 8+ messages in thread
From: Wesley Pan @ 2018-03-16 22:27 UTC (permalink / raw)


Oh, here we go... 

https://ada.yaml.io/
https://github.com/yaml/AdaYaml


On Friday, March 16, 2018 at 3:21:33 PM UTC-7, Wesley Pan wrote:
> Whoops, forgot you wanted a pure Ada implementation instead of bindings...Don't know of any Ada implementations. Sorry.
> 
> On Friday, March 16, 2018 at 3:20:04 PM UTC-7, Wesley Pan wrote:
> > https://github.com/ytomino/yaml-ada
> > 
> > He also has an XML binding: https://github.com/ytomino/xml-ada
> >


^ permalink raw reply	[flat|nested] 8+ messages in thread

* YAML parser?
  2018-03-16 21:24 YAML parser? mockturtle
  2018-03-16 22:20 ` Wesley Pan
@ 2018-03-16 22:30 ` joakimds
  2018-03-17  7:17 ` mockturtle
  2 siblings, 0 replies; 8+ messages in thread
From: joakimds @ 2018-03-16 22:30 UTC (permalink / raw)


Felix Krause has an implementation:

https://github.com/yaml/AdaYaml

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: YAML parser?
  2018-03-16 22:21   ` Wesley Pan
  2018-03-16 22:27     ` Wesley Pan
@ 2018-03-16 22:31     ` Wesley Pan
  1 sibling, 0 replies; 8+ messages in thread
From: Wesley Pan @ 2018-03-16 22:31 UTC (permalink / raw)


Oh, here you go...

https://ada.yaml.io/
https://github.com/yaml/AdaYaml/

On Friday, March 16, 2018 at 3:21:33 PM UTC-7, Wesley Pan wrote:
> Whoops, forgot you wanted a pure Ada implementation instead of bindings...Don't know of any Ada implementations. Sorry.
> 
> On Friday, March 16, 2018 at 3:20:04 PM UTC-7, Wesley Pan wrote:
> > https://github.com/ytomino/yaml-ada
> > 
> > He also has an XML binding: https://github.com/ytomino/xml-ada
> >


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: YAML parser?
  2018-03-16 21:24 YAML parser? mockturtle
  2018-03-16 22:20 ` Wesley Pan
  2018-03-16 22:30 ` joakimds
@ 2018-03-17  7:17 ` mockturtle
  2018-03-17  9:51   ` Felix Krause
  2 siblings, 1 reply; 8+ messages in thread
From: mockturtle @ 2018-03-17  7:17 UTC (permalink / raw)


Thank you, everyone.  I'll try to get in touch with the mantainer of the YAML web site to see if they can update the pate (I do not know if there are constraints of maturity)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: YAML parser?
  2018-03-17  7:17 ` mockturtle
@ 2018-03-17  9:51   ` Felix Krause
  0 siblings, 0 replies; 8+ messages in thread
From: Felix Krause @ 2018-03-17  9:51 UTC (permalink / raw)


On 2018-03-17 07:17:19 +0000, mockturtle said:

> Thank you, everyone.  I'll try to get in touch with the mantainer of 
> the YAML web site to see if they can update the pate (I do not know if 
> there are constraints of maturity)

You can ask me right here if you have concerns :).

Concerning the maturity, AdaYaml is tested with the comprehensive test 
suite of the YAML project. The suite is still in development, but has 
far above 200 tests. AdaYaml passes all of the test cases relevant for 
a user, with failures in details where we are trying to change things 
for the better in upcoming YAML 1.3.

The API is mostly mature, except for a possible minor change in tag 
handling that may happen depending on or decision process on 1.3. You 
can assume that AdaYaml parses all „real“ YAML 1.2 documents (i.e. not 
depending on a few edge cases not found anywhere in the wild) and the 
biggest incompatibility with 1.2 is currently that verbatim tags are 
not allowed:

    !<tag:yaml.org,2002:str> # fails with lexer error
    !!str                    # identical semantics, parses fine

The second „incompatibility“ is that '@' is no longer reserved, but 
parsed as „annotation“. This will not break any existing documents as 
the character was previously reserved. Annotations are currently litte 
more than a proof-of-concept and should not concern you – if you just 
reject any annotation tokens, you have a normal 1.2 structure. All my 
experimental code is in yaml-annotation_processor.gpr so if you just 
import yaml.gpr, you won't import experimental code.

I am always a bit lazy on crafting new releases. As I know now that 
there is interest in using this library again, I will wrap up the 
current state into a new release, as there have been some bug fixes 
since the last one.

-- 
Regards,
Felix Krause


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-17  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16 21:24 YAML parser? mockturtle
2018-03-16 22:20 ` Wesley Pan
2018-03-16 22:21   ` Wesley Pan
2018-03-16 22:27     ` Wesley Pan
2018-03-16 22:31     ` Wesley Pan
2018-03-16 22:30 ` joakimds
2018-03-17  7:17 ` mockturtle
2018-03-17  9:51   ` Felix Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox