summaryrefslogtreecommitdiff
path: root/decode_scan.go
AgeCommit message (Collapse)Author
2023-02-25decode: Include the invalid UTF-8 byte in error messagesLuke Shumaker
2023-02-19compat/json: Correctly handle syntax-error-in-decodeLuke Shumaker
2023-02-18decode_scan, jsonparse: Rework the behavior to make a bit more senseLuke Shumaker
- decode_scan: Don't have .Reset() re-play an erroring rune - decode_Scan: Have RuneTypeEOF always be zero-width - jsonparse: Don't replace syntax errors with RuneTypeEOF if there's no barrier
2023-02-18decode_scan: Fix a doc commentLuke Shumaker
2023-02-18decode_scan: s/initialized/rTypeOK/Luke Shumaker
2023-02-18decode_scan: Go ahead and decrement sc.offset when unreadingLuke Shumaker
2023-02-18decode_scan: PopReadBarrier, Reset: De-couple the .repeat and EOF casesLuke Shumaker
This duplicates code, but it's confusing thinking about them together.
2023-02-18decode_scan: Move Reset() to be by PopReadBarrier()Luke Shumaker
2023-02-07internal: Split in to sub-packagesLuke Shumaker
2023-02-07decode: Fix decoding an actively growing fileLuke Shumaker
2023-01-30Invent "barriers" instead of nesting parsersLuke Shumaker
2023-01-30decode: Inline noWsRuneTypeScanner into runeTypeScannerImplLuke Shumaker
2023-01-30decode: Remove unnecessary scanner struct membersLuke Shumaker
2023-01-30decode: Fix DecodeTypeError offsetsLuke Shumaker
2023-01-29Improve/fix documentation and commentsLuke Shumaker
2023-01-26Move the Parser to the internal packageLuke Shumaker
2022-08-21decode: Lean in to io.RuneScannerLuke Shumaker
So that it's easier to compose your own .DecodeJSON methods, since .DecodeJSON takes an io.RuneScanner.
2022-08-17Get the linter passing (even if it means ignoring borrowed files)Luke Shumaker
2022-08-17Get the new borrowed tests passingLuke Shumaker
2022-08-17Add tests for decode reading too farLuke Shumaker
2022-08-16Get borrowed_decode_test.go passingLuke Shumaker
2022-08-16wip: Reduce test differences [ci-skip]Luke Shumaker
- Handle UTF-16 surrogate pairs - Handle cycles in values - Handle cycles in types - Better errors - Handle case-folding of struct field names - Allow []byteTypeWithMethods - Fix struct field-order - Fix handling of interfaces storing pointers - Enforce a maximum decode depth - Validate struct tags
2022-08-15rename parse_scan decode_scan parse_scan*Luke Shumaker