Replies: 1 comment 4 replies
-
Without knowing anything about the nonterminal, let's ask Prolog for what solutions look like in general: ?- phrase(json_chars(Js), Cs). Js = pairs([]), Cs = "{}" ; Js = pairs([]), Cs = "{} " ; Js = pairs([]), Cs = "{} " ; ... . OK, not a very fair enumeration, yet a simple, one-line example! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to learn how to use the
json_chars
predicate defined in this Scryer library: https://github.com/mthom/scryer-prolog/blob/master/src/lib/serialization/json.plSo far I haven't been able to get it to work.
Can someone share a simple, one-line example?
Beta Was this translation helpful? Give feedback.
All reactions