diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-06-02 12:58:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-02 09:58:08 -0700 |
| commit | b699a36444a03a6f7b312e805de31395a2d2ff9c (patch) | |
| tree | edcb033b9b81c487f9000ca1f8dd818a063aaa39 /source/compiler-core/slang-json-lexer.h | |
| parent | 7a3c87b58de2683c077bd5341052c2e3cebeb048 (diff) | |
JSONBuilder (#1865)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP JSONWriter/JSONParser.
* Checking different Layout styles for JSON.
* Add slang-json-parser.h/.cpp
* WIP JSONValue.
* Added JSONValue::destroy/Recursive.
* Improvement to JSONValue.
* Improve text double conversion precision. Testing.
* Simplify double parsing (just use atof).
JSON comparison
More testing of conversions and start of JSONValue.
* Add <math.h> for isnan, isinf etc.
* Small improvement with object comparison.
* Fix typo in getArgsByName.
* Removed use of isnan and isinf as includes don't work on linux.
* Improve JSON unit test.
* Added asInteger/asFloat/asBool to JSONValue.
* Add SourceLoc to JSONListener.
* Added ability to walk the JSONValue
* JSONBuilder.
* Add converting from lexemes via JSONBuilder.
* Fix VS warning.
* Fix warning for res not being used.
Diffstat (limited to 'source/compiler-core/slang-json-lexer.h')
| -rw-r--r-- | source/compiler-core/slang-json-lexer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/compiler-core/slang-json-lexer.h b/source/compiler-core/slang-json-lexer.h index ee4b60f75..6f81ae5fd 100644 --- a/source/compiler-core/slang-json-lexer.h +++ b/source/compiler-core/slang-json-lexer.h @@ -61,6 +61,7 @@ public: /// Returns true and advances if current token is type bool advanceIf(JSONTokenType type); + bool advanceIf(JSONTokenType type, JSONToken& out); /// Must be called before use SlangResult init(SourceView* sourceView, DiagnosticSink* sink); |
