diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-08 19:56:14 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-08 19:56:32 +1000 |
commit | 73b55459ac724bc84c43159e820b90909dc63d51 (patch) | |
tree | 5d0d00ceb9b60da1ce13be4d0f6164d7df3b208e /json/json.go | |
parent | 7e6f7ce4cfb577a14999a2434db94c8bb3befa82 (diff) |
Move String to its own file
Diffstat (limited to 'json/json.go')
-rw-r--r-- | json/json.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json/json.go b/json/json.go index 7a1bfbb..4155bd2 100644 --- a/json/json.go +++ b/json/json.go @@ -16,7 +16,7 @@ var ( } return Node{Result: ret} }) - properties = Kleene(And(String(`"`), ":", &value), ",") + properties = Kleene(And(StringLit(`"`), ":", &value), ",") _object = Map(And("{", properties, "}"), func(n Node) Node { ret := map[string]interface{}{} @@ -31,7 +31,7 @@ var ( _true = Bind("true", true) _false = Bind("false", false) - _string = Map(String(`"`), func(n Node) Node { + _string = Map(StringLit(`"`), func(n Node) Node { return Node{Result: n.Token} }) ) |