Skip to content

Commit

Permalink
Expand jparse.json, fix comments in some tools
Browse files Browse the repository at this point in the history
  • Loading branch information
xexyl committed Nov 1, 2024
1 parent 5ed8dd3 commit fbe7158
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ These files are in particular:

The new `JPARSE_UTF8_VERSION` is `"2.0.1 2024-11-01"`.

Expand `jparse.json` to include source files for our tools and to include
subdirectories and the tools/directories under that (in other words under
`test_jparse/`).

Fixed comments in some tools.


## Release 2.0.0 2024-10-31

Expand Down
161 changes: 147 additions & 14 deletions jparse.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"no_comment" : "mandatory comment: because comments were removed from the original JSON spec",
"timestamp" : "Sun 29 Sep 2024 18:00:35 UTC",
"timestamp" : "Fri 01 Nov 2024 15:59:34 UTC",
"name" : "jparse",
"description" : "JSON parser API and tools written in C",
"repo" : "https://github.com/xexyl/jparse",
Expand Down Expand Up @@ -41,31 +41,164 @@
"tools" : [
{
"name" : "jparse",
"description" : "JSON parser stand-alone tool"
"description" : "JSON parser stand-alone tool",
"files" : [
{
"source" : "jparse_main.c",
"header" : "jparse_main.h"
}
]
},
{
"name" : "jstrencode",
"description" : "tool to encode a string for JSON"
"description" : "tool to encode a string for JSON",
"files" : [
{
"source" : "jstrencode.c",
"header" : "jstrencode.h"
}
]
},
{
"name" : "jstrdecode",
"description" : "tool to decode JSON encoded strings"
"description" : "tool to decode JSON encoded strings",
"files" : [
{
"source" : "jstrdecode.c",
"header" : "jstrdecode.h"
}
]
},
{
"name" : "verge",
"description" : "tool to determine if first version is greater or equal to the second version"
},
{
"name" : "jnum_chk",
"description" : "tool to check JSON number string conversions"
},
{
"name" : "jnum_gen",
"description" : "tool to generate JSON number string conversion test data"
"description" : "tool to determine if first version is greater or equal to the second version",
"files" : [
{
"source" : "verge.c",
"header" : "verge.h"
}
]
},

{
"name" : "jsemtblgen",
"description" : "tool to generate JSON semantics table"
"description" : "tool to generate JSON semantics table",
"files" : [
{
"source" : "jsemtblgen.c",
"header" : "jsemtblgen.h"
}
]
}
],
"directories" : [
{
"test_jparse" : [
{
"tools" : [
{
"name" : "test_jparse/jnum_chk",
"description" : "tool to check JSON number string conversions",
"files" : [
{
"source" : "test_jparse/jnum_chk.c",
"header" : "test_jparse/jnum_chk.h"
}
]
},
{
"name" : "test_jparse/jnum_gen",
"description" : "tool to generate JSON number string conversion test data",
"files" : [
{
"source" : "test_jparse/jnum_gen.c",
"header" : "test_jparse/jnum_gen.h"
}
]
},
{
"name" : "test_jparse/pr_jparse_test",
"description" : "test print function calls",
"files" : [
{
"source" : "test_jparse/pr_jparse_test.c",
"header" : "test_jparse/pr_jparse_test.h"
}
]
},
{
"name" : "test_jparse/run_jparse_tests.sh",
"description" : "perform the complete suite of tests for the jparse repo",
"files" : [
{
"source" : "test_jparse/run_jparse_tests.sh",
"header" : null
}
]
},
{
"name" : "test_jparse/jparse_test.sh",
"description" : "test JSON parser on valid and invalid JSON file(s)",
"files" : [
{
"source" : "test_jparse/jparse_test.sh",
"header" : null
}
]
},
{
"name" : "test_jparse/jstr_test.sh",
"description" : "JSON string encoding and decoding tests",
"files" : [
{
"source" : "test_jparse/jstr_test.sh",
"header" : null
}
]
},
{
"name" : "test_jparse/is_available.sh",
"description" : "check if a tool is an executable file, and in some cases, is sane",
"files" : [
{
"source" : "test_jparse/is_available.sh",
"header" : null
}
]
},
{
"name" : "test_jparse/prep.sh",
"description" : "prep for a release - actions for make prep and make release",
"files" : [
{
"source" : "test_jparse/prep.sh",
"header" : null
}
]
}
],
"subdirectories" : [
{
"name" : "test_jparse/test_JSON",
"description" : "directories with JSON files to validate as good or bad",
"subdirectories" : [
{
"name" : "test_jparse/test_JSON/good",
"description" : "files that must be valid JSON"
},
{
"name" : "test_jparse/test_JSON/bad",
"description" : "files that must be invalid JSON"
},
{
"name" : "test_jparse/test_JSON/bad_loc",
"description" : "files that must be invalid JSON, with corresponding error files, to validate error location reporting"
}
]
}
]
}
]
}
],
"authors" : [
Expand Down
2 changes: 1 addition & 1 deletion test_jparse/jstr_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# jstr_test.sh - JSON string encoding and decoding test
# jstr_test.sh - JSON string encoding and decoding tests
#
# "Because specs w/o version numbers are forced to commit to their original design flaws." :-)
#
Expand Down
2 changes: 1 addition & 1 deletion test_jparse/pr_jparse_test.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* pr_jparse_test - test print function call
* pr_jparse_test - test print function calls
*
* Here "print function call" refers to functions such as:
*
Expand Down
2 changes: 1 addition & 1 deletion test_jparse/pr_jparse_test.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* pr_jparse_test - test print function call
* pr_jparse_test - test print function calls
*
* "Because specs w/o version numbers are forced to commit to their original design flaws." :-)
*
Expand Down

0 comments on commit fbe7158

Please sign in to comment.