diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-26 13:59:35 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-29 02:14:35 -0700 |
commit | cf062e09037c7e54a821b05ef50b3e86683090f8 (patch) | |
tree | 2774971350856aba2c0607827eece0cabd63de52 /internal | |
parent | 403c22024921af1d66c6a3de7ee6431043465c39 (diff) |
Improve/fix documentation and comments
Diffstat (limited to 'internal')
-rw-r--r-- | internal/parse.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/internal/parse.go b/internal/parse.go index cefcca0..73470ae 100644 --- a/internal/parse.go +++ b/internal/parse.go @@ -226,13 +226,13 @@ type Parser struct { err error closed bool - // We reuse RuneTypes to store the stack. The base idea is - // that, stack items are "the most recently read - // stack-relevant RuneType". + // We reuse RuneTypes to store the stack. The base idea is: + // stack items are "the most recently read stack-relevant + // RuneType". // // We treat RuneTypeError as a wildcard. // - // The "normal"stack-relevant RuneTypes are: + // The "normal" stack-relevant RuneTypes are: // // "\uABC for strings // -01.2e+3 for numbers @@ -245,7 +245,6 @@ type Parser struct { // // { object: waiting for key to start or '}' // » object: reading key / waiting for colon - // : object: waiting for value to start // o object: reading value / waiting for ',' or '}' // // [ array: waiting for item to start or ']' @@ -266,7 +265,7 @@ type Parser struct { // »" {" // »" {"x // » {"x" - // : {"x": + // ox {"x": // o" {"x":" // o" {"x":"y // o {"x":"y" @@ -274,7 +273,7 @@ type Parser struct { // »" {"x":"y"," // »" {"x":"y","a // » {"x":"y","a" - // : {"x":"y","a": + // ox {"x":"y","a": // o" {"x":"y","a":" // o" {"x":"y","a":"b // o {"x":"y","a":"b" |