Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
Make json object stack explicit.
Browse files Browse the repository at this point in the history
As of now, the program stack is implicitly used to build the json object
tree. For partial parsing support, we cannot use the program stack as parsing
can be called at anytime. This commit adds a values stack and uses it to
transmit value back along the object tree. All parsing functions now return void
and instead pushes their result on the stack. The functions needing the result
of other parsing functions (mostly for arrays and objects) read values from the
stack and pop them.
  • Loading branch information
canatella committed Dec 29, 2016
1 parent bde2f38 commit ff61ca1
Showing 1 changed file with 118 additions and 63 deletions.
Loading

0 comments on commit ff61ca1

Please sign in to comment.