{"id":25758143,"url":"https://github.com/gkzhb/cs143-pa","last_synced_at":"2025-10-10T10:32:57.834Z","repository":{"id":118132976,"uuid":"323362140","full_name":"gkzhb/cs143-pa","owner":"gkzhb","description":"A docker image for Programming Assignment of CS143 compilers course","archived":false,"fork":false,"pushed_at":"2021-01-07T15:42:35.000Z","size":1867,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T16:47:54.287Z","etag":null,"topics":["docker-image"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/gkzhb/cs143-pa","language":"Dockerfile","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/gkzhb.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-21T14:38:32.000Z","updated_at":"2021-01-07T15:42:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"245f2292-e13b-4d77-a363-807078ba0de2","html_url":"https://github.com/gkzhb/cs143-pa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gkzhb/cs143-pa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkzhb%2Fcs143-pa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkzhb%2Fcs143-pa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkzhb%2Fcs143-pa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkzhb%2Fcs143-pa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gkzhb","download_url":"https://codeload.github.com/gkzhb/cs143-pa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkzhb%2Fcs143-pa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003549,"owners_count":26083595,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker-image"],"created_at":"2025-02-26T16:37:29.892Z","updated_at":"2025-10-10T10:32:57.811Z","avatar_url":"https://github.com/gkzhb.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS143-PA\n\nThis image is for Programming Assignment of *CS143 Compilers* course from Stanford. You can find the course in [edX](https://courses.edx.org/) and [the website](http://web.stanford.edu/class/cs143/) for this course. To get this image, run:\n\n```bash\ndocker pull gkzhb/cs143-pa\n```\n\n\u003e **Notice**: This image does not contain the project files but provides the running environment.\n\u003e\n\u003e You need to mount your cool project root (full path) to the path `/usr/class/cool` of this image:\n\u003e ```bash\n\u003e docker run -it -v \u003cyour-cool-path\u003e:/usr/class/cool gkzhb/cs143-pa /bin/bash\n\u003e ```\n\u003e In this way, you can use your preferred editors on your host machine to code.\n\n[Click here to download PA tarball](https://courses.edx.org/asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@asset+block@student-dist.tar.gz)\n\nThis image contains latest bison from Ubuntu 16.04 and compiled flex 2.5.39.\n\n## Problem: Undefined reference to 'yylex()'\n\nIf you encounters the problem `Undefined reference to 'yylex()'` in PA2, you need to add `%option noyywrap` in Definition Section of `cool.flex`.\n\nYou can find more info in [g++ - Undefined reference to 'yylex()' - Stack Overflow](https://stackoverflow.com/questions/1480138/undefined-reference-to-yylex)\n\nBesides, if you use flex 2.6, the solution at the beginning may be of no use. Remove the value of  variable `LIB` in `Makefile`, in other words, remove `-lfl` to solve this compiling error (also reference to Stack Overflow link above). But there is no guarantee that this will produce the correct program you want.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkzhb%2Fcs143-pa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgkzhb%2Fcs143-pa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkzhb%2Fcs143-pa/lists"}