]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Parser is now tail recursive. Implemented parse tree, self-cleaning on failure Cloudwalk/json 118/head
authorCloudwalk <cloudwalk009@gmail.com>
Sun, 25 Jul 2021 19:42:54 +0000 (15:42 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Tue, 27 Jul 2021 17:47:10 +0000 (13:47 -0400)
commitb1d582ec78ca1bf2810da8fce52ecd023e54c94f
tree7304b46b70475d875f2e4954954ff1c43c3657a1
parentf2e8c34e913286d202c5992309e64d6552697245
Parser is now tail recursive. Implemented parse tree, self-cleaning on failure

Things left to do:
* A generic lookahead function that doesn't advance the pointer
* Support blank objects and arrays
* Refactor it so only the object and array functions are tail recursive,
  which would be ideal for compilers or settings where tail call
  optimization isn't done. Without that, the stack can get seriously
  bloated.
  * Oh and actually implement the interface to actually use the parser.
json.c
parser.c
parser.h