Functions that allow for parsing of simple, Lisp-style s-expressions (specifically - lists and atoms).
More...
|
| auto | ghassanpl::formats::sexpressions::consume_value (std::string_view &sexp_str, std::array< char, 2 > braces={ '[', ']' }) -> nlohmann::json |
| | Consumes [list] or atom; a ',' (comma character) is considered its own atom.
|
| auto | ghassanpl::formats::sexpressions::consume_atom (std::string_view &sexp_str, char end_brace=']') -> nlohmann::json |
| | Consumes a space-delimited word, 'string' "literal", or 14.46 number.
|
| auto | ghassanpl::formats::sexpressions::consume_list (std::string_view &sexp_str, std::array< char, 2 > braces={ '[', ']' }) -> nlohmann::json |
| | Consumes space-delimited elements until close-brace or end-of-string.
|
| auto | ghassanpl::formats::sexpressions::parse_value (std::string_view sexp_str, std::array< char, 2 > braces={ '[', ']' }) -> nlohmann::json |
| auto | ghassanpl::formats::sexpressions::parse_atom (std::string_view sexp_str, char end_brace=']') -> nlohmann::json |
| auto | ghassanpl::formats::sexpressions::parse_list (std::string_view sexp_str, std::array< char, 2 > braces={ '[', ']' }) -> nlohmann::json |
Functions that allow for parsing of simple, Lisp-style s-expressions (specifically - lists and atoms).
Uses the nlohmann::json library to store parsed values.