{"id":13800640,"url":"https://github.com/mkchoi212/LBAC-Swift","last_synced_at":"2025-05-13T09:31:48.176Z","repository":{"id":88876429,"uuid":"98950538","full_name":"mkchoi212/LBAC-Swift","owner":"mkchoi212","description":"Learn how to build a compiler by interacting with Let's Build a Compiler by Jack Crenshaw in Swift Playgrounds","archived":false,"fork":false,"pushed_at":"2018-01-06T03:10:05.000Z","size":393,"stargazers_count":163,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T08:53:42.643Z","etag":null,"topics":["compiler","compiler-construction","compiler-principles","swift","swift-playgrounds"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkchoi212.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-01T02:29:50.000Z","updated_at":"2025-02-26T11:54:15.000Z","dependencies_parsed_at":"2023-06-12T22:45:21.847Z","dependency_job_id":null,"html_url":"https://github.com/mkchoi212/LBAC-Swift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkchoi212%2FLBAC-Swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkchoi212%2FLBAC-Swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkchoi212%2FLBAC-Swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkchoi212%2FLBAC-Swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkchoi212","download_url":"https://codeload.github.com/mkchoi212/LBAC-Swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253913203,"owners_count":21983273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","compiler-construction","compiler-principles","swift","swift-playgrounds"],"created_at":"2024-08-04T00:01:14.634Z","updated_at":"2025-05-13T09:31:46.391Z","avatar_url":"https://github.com/mkchoi212.png","language":"Swift","funding_links":[],"categories":["Swift","Theoretical Computer Science"],"sub_categories":["Languages"],"readme":"\u003cp align=\"center\"\u003e\n     \u003cimg src=\"./assets/header.png\"\u003e\n    \u003ch3 align=\"center\"\u003eLBAC Swift\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n    \"Let's Build a Compiler\" translated to Swift Playgrounds\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003cimg src=\"https://img.shields.io/badge/complete-chapter_1~10-blue.svg\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/status-work_in_progress-lightgrey.svg\"\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\nThis repo is an attempt to learn how compilers work by translating Jack W. Crenshaw's [Let's Build a Compiler](http://www.compilers.iecc.com/crenshaw/) book into Swift Playgrounds.\n\n## 🗺️ How to Navigate\nThe original book is divided into 16 chapters and if you haven't noticed already, there are also 16 Playground files in this repo. \n\n**Each Playground file represents a chapter in the book**. However, because fitting an entire chapter into a single Playground file would be impractical, each chapter has been divided into several \"Parts\".\n\n### .playground Structure\n\nA `.playground` file is actually composed of *three* directories.\n\n1. `Parts`  - individual parts of a book resides in\n2. `Sources` - `Cradle.swift`, which contains all the boilerplate code used throughout the book is contained here\n3. `Resource` - the original LBaC text file `tutor(n).txt` , is contained here\n\n\u003e If you can't seem to find these directories after opening your `.playground` file, press `⌘ + 0` to show the Navigator (left panel).\n\n## ⚠️ Notes\n- The original Let's Build a Compiler (LBaC) was written in Turbo Pascal, a very popular language at the time. Pascal is very different from Swift and because of this, \"literally\" converting Pascal code into Swift is quite unnatural.\n- To make the code as \"Swifty\" as possible, I have taken the liberty to make some changes in the code. Please feel free to offer suggestions on making the code even \"Swifty-er\"\n- This has turned out to be more time consuming than I have imagined in the beginning. Therefore, **out of the 16 chapters, 10 have been completed so far**; feel free to continue on from where I have left off 🏃‍♂️\n\n\n## ✋ Contributing\n\nThis is an open source project so feel free to contribute by\n\n- Opening an [issue](https://github.com/mkchoi212/LBAC-Swift/issues/new)\n- Sending me feedback via [email](mailto://mkchoi212@icloud.com)\n- Or [tweet](https://twitter.com/Bananamlkshake2) at me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkchoi212%2FLBAC-Swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkchoi212%2FLBAC-Swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkchoi212%2FLBAC-Swift/lists"}