This repository has been archived by the owner on Mar 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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