From 7899ba047c6c95385732a52d3457fc72c0795599 Mon Sep 17 00:00:00 2001 From: Sasha Lopoukhine Date: Fri, 6 Oct 2017 16:23:49 +0200 Subject: [PATCH] add data parsing playground --- .../Pages/UTF.xcplaygroundpage/Contents.swift | 13 +++++++++++++ SuperCombinators.playground/contents.xcplayground | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 SuperCombinators.playground/Pages/UTF.xcplaygroundpage/Contents.swift diff --git a/SuperCombinators.playground/Pages/UTF.xcplaygroundpage/Contents.swift b/SuperCombinators.playground/Pages/UTF.xcplaygroundpage/Contents.swift new file mode 100644 index 0000000..0c207ec --- /dev/null +++ b/SuperCombinators.playground/Pages/UTF.xcplaygroundpage/Contents.swift @@ -0,0 +1,13 @@ +//: [Previous](@previous) + +import SuperCombinators + +let utf8 = DataParser.utf8 + +let original = "Hello, playground 🚀" +let data = original.data(using: .utf8)! +let scalars = utf8.parse(data) + +//byte.parsePrefix(data) + +//: [Next](@next) diff --git a/SuperCombinators.playground/contents.xcplayground b/SuperCombinators.playground/contents.xcplayground index edf5ba8..ab60067 100644 --- a/SuperCombinators.playground/contents.xcplayground +++ b/SuperCombinators.playground/contents.xcplayground @@ -2,6 +2,7 @@ - + + \ No newline at end of file