tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

Revisit parse_options and parse_error #145

Closed tgockel closed 4 years ago

tgockel commented 4 years ago

The current parse_options (and the associated parse_error) has a few things that are no longer relevant.

tgockel commented 4 years ago

Change parse_error into something that ASTs can utilize. A huge amount of time is wasted in detail::parse_context::next tracking lines and columns (~15%), even though this is barely used. Beyond that, having multiple problems is more of an error with serialization than parsing (parsing can go awry quickly).