This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Non-SP] KeyValues parsers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 07-30-2013 , 04:05   [Non-SP] KeyValues parsers
Reply With Quote #1

Someone asked me what they thought was a good language for parsing KeyValues for some standalone application. The #1 factor that came to mind was "Does a parser exist for that language?"

Turns out it's harder to find parsers than I thought. I wanted to collect the results of my search in one place, so here goes:

Note: I haven't used or reviewed most of these personally
C++ Valve KeyValues Implementation: KeyValues.h KeyValues.cpp - LOW portability (Requires lots of hl2sdk by default)
C++ SM TextParsers Implementation: TextParsers.h TextParsers.cpp - MEDIUM portability (Linked version is psychonic's GDC fork port)
Node/Javascript: keyvalues-node - Should be portable, but their output format is questionable.
PHP: SourceBans KeyValues/SMC_Parser implementation
PHP: KVReader2.php another PHP implementation that doesn't use token_get_all
C#: SteamKit implementation
Python: py-keyvalues

Those are my finds thus far. I was hoping for a Python implementation personally, but I couldn't find one. Also: If anyone can give me formatted links for the bitbucket/sm repos that give latest version instead of revisioned version that would be helpful I think.

Edit: Got python, fixed repo links.

Last edited by ProdigySim; 07-31-2013 at 15:02.
ProdigySim is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode