{"id":16513221,"url":"https://github.com/moisutsu/pascal_compiler","last_synced_at":"2026-04-28T17:05:00.201Z","repository":{"id":174116424,"uuid":"267606445","full_name":"moisutsu/pascal_compiler","owner":"moisutsu","description":"C言語によるPascal風言語のコンパイラ","archived":false,"fork":false,"pushed_at":"2020-06-02T08:37:44.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T03:46:22.691Z","etag":null,"topics":["c","lex","llvm","pascal-compiler","yacc"],"latest_commit_sha":null,"homepage":"","language":"Yacc","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/moisutsu.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-05-28T14:05:42.000Z","updated_at":"2023-01-27T02:29:42.000Z","dependencies_parsed_at":"2023-07-10T08:16:28.473Z","dependency_job_id":null,"html_url":"https://github.com/moisutsu/pascal_compiler","commit_stats":null,"previous_names":["moisutsu/pascal_compiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moisutsu/pascal_compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisutsu%2Fpascal_compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisutsu%2Fpascal_compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisutsu%2Fpascal_compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisutsu%2Fpascal_compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moisutsu","download_url":"https://codeload.github.com/moisutsu/pascal_compiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisutsu%2Fpascal_compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","lex","llvm","pascal-compiler","yacc"],"created_at":"2024-10-11T16:08:10.402Z","updated_at":"2026-04-28T17:05:00.172Z","avatar_url":"https://github.com/moisutsu.png","language":"Yacc","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pascal Compiler\n\nC言語によるPascal風言語のコンパイラの実装\n\n## 使用技術\n- LLVM\n- Yacc\n- Lex\n\n## 実行方法\n\n`docker-compose`でアプリケーションを立ち上げる。\n\n```bash\n$ docker-compose run --rm compiler\n```\n\n`make run`でプログラムをコンパイルし、`llvm`で実行する。\n\n```bash\n$ make run\n```\n\nこれにより、`samples`内の`prime_numbers.p`を実行。\n\n`make run`するときに、引数を与えることで、`samples`内のプログラムをファイルを指定できる。\n\n```bash\n$ make run FILE=bubble_sort.p\n```\n\n## samples\n\n`samples`内のプログラムを紹介\n\n- prime_numbers.p\n\n    数値を一つ入力することで、2からその数値までの素数を出力する。\n\n- fact.p\n\n    数値を一つ入力することで、その数値の階乗を出力する。\n\n- bubble_sort.p\n\n    まず数値を一つ入力し要素数を決める。そして、その要素を1要素ずつ入力することで、バブルソートを行い出力する。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoisutsu%2Fpascal_compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoisutsu%2Fpascal_compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoisutsu%2Fpascal_compiler/lists"}