Jump to content
Sign in to follow this  
soul_assassin

ClassForge - config parsing library

Recommended Posts

For a while now I have been trying to contruct a tool that would turn a massive amount of configs into some sort of usable class documentation automatically. ClassForge is the first step to achieve this.

Note: there is no binary version available yet until I am sure that it is tested thoroughly.

What is ClassForge?

Its a .NET dll library that lets you (given a path to either a config or a folder where multiple configs are located) generate an in-memory class tree model that you can later use to do whatever you please with.

THIS IS NOT AN APPLICATION, BUT A TOOL FOR PROGRAMMERS!

Usage

One the dll is referenced in your project you can use the three following methods:

using ClassForge;
using ClassForge.Model;

.....

var parser = new CfgSimpleParser();

var model = parser.Parse("files\\config.cpp"); // parses one single config and returns a Model

var models = parser.ParseDirectory("files\\mergetest"); // parses a directory and returns a List<Model> with every Model corresponding to a config.cpp found (recursively)

var model = parser.ParseDirectoryMerged("files\\mergetest"); // parses a directory and returns a Model with all Models corresponding to a config.cpp found (recursively) merged into a single model

Source code can be found here: https://github.com/ajvorobiev/ClassForge

Binaries to be published later.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×