Re: YAML parser

Pontus Östlund <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Actually, I begun one a year or two or three ago - time flies - but since I'm not a proper C-programmer, and in this case, neither a proper cmod-programmer, I never finished it. 

I've from time to time thought of finishing it but I've never really hade a dire need to, and I've been busy with other stuff, so it's been lingering for quite a while.

I actually think I had the parser and the scanner covered, but then I realised they're pretty much the same, so I wanted a base cmod class that the parser and scanner classes could inherit. But I never solved that stuff in cmod, since I'm a newbie at that kind of thing, and then I got other  stuff occuping my interest and that's where it's at!

From my point of wiew an experienced Pike core developer would create a Pike wrapper for YAML in a couple of hours. As I said I'm not an experienced C-programmer, but YAML is a pure C-library with virtually no dependencies, and isn't too hard to comprehend even for an inexperienced C-programmer as my self, so the objective here is pretty much a thin CMOD-wrapper around the YAML library (I'd guess)

But of course, even I understand there's a differece between having an implementation that solves most use cases and an implementation that covers the entire YAML library. 

In anyway, here's a link to my Github repo with the infant start of an YAML module: https://github.com/poppa/pike-cmod/tree/master/Public_Parser_Yaml

As it is now, I think it compiles, but actually doesn't do anything. The "static" module methods should work, like Public.Parser.YAML.version() and alike, but that really doesn't solve any real world problems does it ;)

Anywho! I had put this stuff in the "maybe some day, or maybe never" pile but since it came up, I wouldn't mind having a wrestle with it again. And if someone else would like to have a go at it I wouldn't have anything against it.

# Pontus
Sent while moving...

> 30 sep 2014 kl. 23:45 skrev Tor Edvardsson @ Pike importm�te f�r mailinglistan <[email protected]>:
> 
> Hi,
> 
> Does it exist any YAML parser for pike? I search around and could not find anything.
> 
> If I need to write my own please please point me to something similar that alreay exists in pike. 
> 
> An alternative would be to use an existing YAML parser that spits out JSON and import that into pike.
> 
> / Tor Edvardsson
>
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.