Skip to content

Commit

Permalink
add data parsing playground
Browse files Browse the repository at this point in the history
  • Loading branch information
superlopuh committed Oct 6, 2017
1 parent c0c4c9e commit 7899ba0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 2 additions & 1 deletion SuperCombinators.playground/contents.xcplayground
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<playground version='6.0' target-platform='ios' last-migration='0900'>
<pages>
<page name='JSON'/>
<page name='Untitled Page'/>
<page name='UTF'/>
<page name='Examples'/>
</pages>
</playground>

0 comments on commit 7899ba0

Please sign in to comment.