Skip to content

Commit f615795

Browse files
Clean up some typos and non-ascii chars (#60)
1 parent c7a6c3b commit f615795

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

GRAMMAR.ABNF

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ bracket-specifier = "[" (number / slice-expression) "]"
224224
;; For the grammar rule expression bracket-specifier the expression is first evaluated, and then return value from the
225225
;; expression is given as input to the bracket-specifier.
226226
;;
227-
;; Using a "* character within a bracket-specifier is discussed below in the wildcard expressions section.
227+
;; Using a "*" character within a bracket-specifier is discussed below in the wildcard expressions section.
228228

229229
bracket-specifier =/ "[]" ;; ## Flatten Operator
230230
;; When the character sequence [] is provided as a bracket specifier, then a flattening operation occurs on the current
@@ -346,7 +346,7 @@ keyval-expr = identifier ":" expression
346346
;; ```
347347

348348
expression =/ "*" ;; # Wildcard Expressions \
349-
bracket-specifier = "[" "*" "]"
349+
bracket-specifier =/ "[" "*" "]"
350350
;; A wildcard expression is a expression of either `*` or `[*]`. A wildcard expression can return multiple elements, and the
351351
;; remaining expressions are evaluated against each returned element from a wildcard expression. The `[*]` syntax applies to
352352
;; a list type and the `*`syntax applies to a hash type.
@@ -515,11 +515,11 @@ expression-type = "&" expression
515515

516516
raw-string = "'" *raw-string-char "'" ;; # Raw String Literals \
517517
raw-string-char = (%x20-26 / %x28-5B / %x5D-10FFFF) / preserved-escape / raw-string-escape ;; \
518-
preserved-escape = escape (%x20-26 / %28-5B / %x5D-10FFFF) ;; \
518+
preserved-escape = escape (%x20-26 / %x28-5B / %x5D-10FFFF) ;; \
519519
raw-string-escape = escape ("'" / escape)
520520
;; A raw string is an expression that allows for a literal string value to be specified. The result of evaluating the raw
521521
;; string literal expression is the literal string value. It is a simpler form of a literal expression that is special
522-
;; cased for strings. For example, the following expressions both evaluate to the same value: "foo:
522+
;; cased for strings. For example, the following expressions both evaluate to the same value: "foo":
523523
;;
524524
;; ```
525525
;; search(`"foo"`, "") -> "foo"
@@ -562,13 +562,13 @@ literal = "`" json-value "`" ;; # Literal Expressions
562562
;; search({first: a, type: `"mytype"`}, {"a": "b", "c": "d"}) -> {"first": "b", "type": "mytype"}
563563
;; ```
564564

565-
unescaped-literal = %x20-21 / ; space !
566-
%x23-5B / ; # - [
567-
%x5D-5F / ; ] ^ _
568-
%x61-7A ; a-z
569-
%x7C-10FFFF ; |}~ ...
570-
escaped-literal = escaped-char / (escape %x60)
571-
number = ["-"]1*digit
565+
unescaped-literal = %x20-21 / ; space !
566+
%x23-5B / ; # - [
567+
%x5D-5F / ; ] ^ _
568+
%x61-7A / ; a-z
569+
%x7C-10FFFF ; |}~ ...
570+
escaped-literal = escaped-char / (escape "`")
571+
number = ["-"] 1*digit
572572
digit = %x30-39
573573
identifier = unquoted-string / quoted-string ;; # Identifiers
574574
;; An identifier is the most basic expression and can be used to extract a single element from a JSON document.
@@ -599,7 +599,7 @@ unquoted-string = (%x41-5A / %x61-7A / %x5F) *( ; A-Za-z_
599599
%x61-7A) ; a-z
600600
quoted-string = quote 1*(unescaped-char / escaped-char) quote
601601
unescaped-char = %x20-21 / %x23-5B / %x5D-10FFFF
602-
escape = %x5C ; Back slash: \
602+
escape = "\"
603603
quote = %x22 ; Double quote: '"'
604604
escaped-char = escape (
605605
%x22 / ; " quotation mark U+0022
@@ -641,9 +641,9 @@ json-number = [ minus ] int [ frac ] [ exp ]
641641
decimal-point = %x2E ; .
642642
digit1-9 = %x31-39 ; 1-9
643643
e = %x65 / %x45 ; e E
644-
exp = e [ minus / plus ] 1*DIGIT
645-
frac = decimal-point 1*DIGIT
646-
int = zero / ( digit1-9 *DIGIT )
644+
exp = e [ minus / plus ] 1*digit
645+
frac = decimal-point 1*digit
646+
int = zero / ( digit1-9 *digit )
647647
minus = %x2D ; -
648648
plus = %x2B ; +
649649
zero = %x30 ; 0

0 commit comments

Comments
 (0)