Skip to content

marcos-venicius/cson

Repository files navigation

Cson

A very simple JSON reader for C

image

image

Better syntax error reporting

image

Implementing a new parser

The new parser, parses the json as a tree, making it easier to travel over the path specified by the user and prevent key conflicts.

image

Testing

We have some examples to you:

basic one:

$ make basic
$ ./basic

testing the new parser:

$ make st
$ ./st

nested_objects one:

$ make nested_objects
$ ./nested_objects

nested_arrays one:

$ make nested_arrays
$ ./nested_arrays

nested_stuff one:

$ make nested_stuff
$ ./nested_stuff

Next improvements

  • Better error reporting at parser level
  • Fix the formatter scaping strings
  • Generate a libray from Cson

Next steps

  • Create a first unstable release

Disclaimer

Note

This is a working in progress. It's not ready yet for any kind of use.