mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Drop a couple of bindings.
This commit is contained in:
parent
3b21c087a0
commit
db6bfbb85c
@ -78,10 +78,8 @@ public let json: JSONParser = fix { json in
|
||||
Cofree(range, .Keyed(Dictionary(elements: values)))
|
||||
} <?> "object"
|
||||
|
||||
let doubleParser: DoubleParser = number
|
||||
let numberParser: JSONParser = (doubleParser --> { _, range, value in
|
||||
let num = JSONLeaf.Number(value)
|
||||
return Cofree(range, .Leaf(num))
|
||||
let numberParser: JSONParser = (number --> { _, range, value in
|
||||
Cofree(range, .Leaf(JSONLeaf.Number(value)))
|
||||
}) <?> "number"
|
||||
|
||||
let null: JSONParser = %"null" --> { (_, range, value) in
|
||||
|
Loading…
Reference in New Issue
Block a user