cvarlib

SourceForge.net Logo

About

cvarlib is an extensible interpreter for a data script language similar to the cvar script found in iD Software Game Engines and its derivatives (Quake, Half-Life, etc.). I wrote the first version a few years ago and have recently fixed it up and decided to release it because I find it very useful.

Download

The best way right now is to simply go to the sourceforge project page and get the four files from the SVN repository. I'll start offering regular builds soon.

News

May 15, 2007

Sourceforge project registered and this rudimentary website setup

Documentation

I haven't written any docs for cvarlib yet, but you can pretty much gather 99% of it from just looking through the header files. Nonetheless, here are a few pointers before I write actual documentation:

Subsystems

cvar_* is the core stuff, cvarx_* is extensions. Core stuff includes the basic interpreter, the ability to define types, variable links, and basic output stuff. Extensions include various datatypes (int, real, string, alias), utility functions for accessing them, utility functions for output, and other things.

Todo

Alot ... ;). The error system is crap, and the parser isn't perfect. Also, I want to implement more type checking but I'm not yet sure how I'll pull that off easily. Please, email me with more ideas if you have them.