{"id":266,"date":"2014-06-20T00:40:28","date_gmt":"2014-06-20T08:40:28","guid":{"rendered":"http:\/\/blog.danielparnell.com\/?p=266"},"modified":"2014-06-21T15:11:39","modified_gmt":"2014-06-21T23:11:39","slug":"swift-parser-generation","status":"publish","type":"post","link":"https:\/\/blog.danielparnell.com\/?p=266","title":{"rendered":"Swift Parser Generation"},"content":{"rendered":"<p>I&#8217;ve been fascinated by the Scala language since I first saw it. I&#8217;ve been fortunate enough to be able to use Scala in a couple of projects. One of the parts of the Scala standard library I really like is the <a href=\"http:\/\/www.scala-lang.org\/api\/2.10.3\/index.html#scala.util.parsing.combinator.Parsers\">parser combinator<\/a> stuff. \u00c2\u00a0I&#8217;ve been spending a bit of time recently playing with some ideas as to how something like it could be made for the new Swift language from Apple and I&#8217;ve made a first cut <a href=\"https:\/\/github.com\/dparnell\/swift-parser-generator\">here<\/a>.<\/p>\n<p>It still needs a lot of work, but at the moment it is usable. \u00c2\u00a0What I&#8217;m thinking is I will use it as the basis of a much nicer one that follows the Scala version more closely now that I have a better understanding of how Swift works. \u00c2\u00a0I doubt I&#8217;ll be able to make it a nice as the Scala one, but I may be able to get close with any luck \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been fascinated by the Scala language since I first saw it. I&#8217;ve been fortunate enough to be able to use Scala in a couple of projects. One of the parts of the Scala standard library I really like is the parser combinator stuff. \u00c2\u00a0I&#8217;ve been spending a bit of time recently playing with some &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.danielparnell.com\/?p=266\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Swift Parser Generation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,47],"tags":[48,49,66],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-mac-os-x","category-swift","tag-cocoa-2","tag-parser","tag-swift","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p561S3-4i","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":1,"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.danielparnell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}