diff options
| author | Dylan <boss@tehbox.org> | 2026-06-14 22:24:52 +1200 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-06-14 22:24:52 +1200 |
| commit | 82a68f09ecf2440b22c2604fe207bbee1c5f4d3a (patch) | |
| tree | 73437353a456a41366cf5a48e52c70d480a925f7 /src/json.h | |
| parent | e742522e2f428a17cd389e030d167fadcd25c8ef (diff) | |
| download | tehjson-82a68f09ecf2440b22c2604fe207bbee1c5f4d3a.tar.gz tehjson-82a68f09ecf2440b22c2604fe207bbee1c5f4d3a.zip | |
feat: Added arrays for all literal types
Diffstat (limited to 'src/json.h')
| -rw-r--r-- | src/json.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -51,6 +51,8 @@ namespace TehJSON Token consume(TokenType type); TokenType nextTokenType(); void readFromTokens(std::vector<Token> tokens); + template <typename T> + std::vector<T> readVector(TokenType type, T(*)(const std::string)); // Leaf data fields std::shared_ptr<void> data; |
