Jump to content

libspriter a C SCML parser


Galaco

Recommended Posts

Hi, I just made this parser for SCML files, it's one of my first ever pure C programs and i learnt a lot from it. I made this because i was unhappy with the current spriter C++ implementation requiring inheritance to use. It probably isn't perfect but it should just about work with some edits. You will have to manually navigate the spriter_data structures, please make pull requests!

Example:

#include "scml.h"

int main() {
	struct tag_list tag_list = parse_file("test.scml");
	struct spriter_data spriter_data = parse_tags(tag_list);
	
	// navigate the spriter_data structures
  
  	tag_list_destroy(&tag_list);
  	spriter_data_destroy(&spriter_data);
	
	return 0;
}

https://github.com/Bambofy/libspriter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...