{"id":13749317,"url":"https://github.com/SnO2WMaN/rust-proplogic-toylang","last_synced_at":"2025-05-09T12:32:37.948Z","repository":{"id":109701663,"uuid":"606605554","full_name":"SnO2WMaN/rust-proplogic-toylang","owner":"SnO2WMaN","description":"この冰剣はアトリビュートであり本質ではない","archived":false,"fork":false,"pushed_at":"2023-05-29T07:01:24.000Z","size":18,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T22:33:03.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SnO2WMaN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-02-26T01:34:40.000Z","updated_at":"2024-08-03T07:03:17.331Z","dependencies_parsed_at":"2024-08-03T07:13:15.211Z","dependency_job_id":null,"html_url":"https://github.com/SnO2WMaN/rust-proplogic-toylang","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/SnO2WMaN%2Frust-proplogic-toylang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnO2WMaN%2Frust-proplogic-toylang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnO2WMaN%2Frust-proplogic-toylang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnO2WMaN%2Frust-proplogic-toylang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SnO2WMaN","download_url":"https://codeload.github.com/SnO2WMaN/rust-proplogic-toylang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224863108,"owners_count":17382279,"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":[],"created_at":"2024-08-03T07:00:59.210Z","updated_at":"2024-11-16T00:30:27.049Z","avatar_url":"https://github.com/SnO2WMaN.png","language":"Rust","funding_links":[],"categories":["Propositional logic"],"sub_categories":["Libraries"],"readme":"# Toy language for Propositional Logic written in Rust\n\n## Raison d'être\n\nこのプロジェクトでは，[Development Containers](https://containers.dev)の中に[Nix](https://nixos.org/)を入れて開発環境を構築しています．\nこれにより，**利用者がNixを自分のマシンに導入していなくても**，限りなく同じ開発環境が（あるいは手元で動かしてみる環境が）ほとんど何の労力無く展開可能であることを実現出来たと信じたいです．\n\n## 開発環境の構築\n\n### Dev Containerを介して開発環境を構築する\n\nNixを導入していなければこの方法を利用してください．\n\n1. Dev Containerをサポートしている[何らかのツール](https://containers.dev/supporting)を導入する．ほとんどの方にとっては[VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)で良いでしょう．\n1. このプロジェクトをクローンしてDev Containerとしてビルドし，中に入る．（手順は各々のツールの説明に従ってください．）\n1. 以上．\n\n### Dev Containerを介せず開発環境を構築する\n\nNixを導入しているなら，[Nix Flakesを有効化](https://nixos.wiki/wiki/Flakes#Enable_flakes)した上で，`devshell#default`に入ってください．\n[direnv](https://github.com/direnv/direnv/wiki/Nix)を利用するのも良いでしょう．\n\n### 開発環境の説明\n\nNixの設計上，開発環境内のシェルでは常に同じ環境が保たれるはずです．\nすなわち，このドキュメントを書いた時点以降で更新していなければ，次のバージョン情報は**あなたの開発環境であったとしても**同じになるはずです．\n\n```shell\n$ rustc --version\nrustc 1.67.1 (d5a82bbd2 2023-02-07)\n\n$ cargo --version\ncargo 1.67.1 (8ecd4f20a 2023-01-10)\n```\n\nその他は，標準的なRustの開発と同様に行える筈なので，それに従ってください．\n\n### 成果物の利用\n\n**Note**: 以下の内容は，GitHub Actions上で実際にビルド可能であるかをチェックし，成功していることを前提として記載しています．すなわち，Actionsが失敗している場合はおそらく出来ません．\n\n[![ci.yml](https://github.com/SnO2WMaN/rust-proplogic-toylang/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/SnO2WMaN/rust-proplogic-toylang/actions/workflows/ci.yml?query=branch%3Amain)\n\n（開発しないにしても）手元で簡単にビルドの成果物を試してみたいという方は，以下のコマンドを実行してください．`result/bin/rust-proplogic-toylang`に実行ファイルが生成される筈です．\n\n```shell\n$ nix build \".#default\"\n$ ./result/bin/rust-proplogic-toylang --help\n```\n\nあるいは，以下のコマンドで直接実行できます．これは上記と同じ実行結果となります．\n\n```shell\n$ nix run \".#default\" -- --help\n```\n\n## 参考文献\n\n- [puripuri2100/ralcu](https://github.com/puripuri2100/ralcu)\n  - Rustについて全く書けなかったので参考にしました．\n- [『数理論理学』, 戸次大介](https://www.utp.or.jp/book/b306383.html)\n  - 命題論理のシンタクスについてはこれに沿っています．\n\n## 命題論理について\n\n以下はメモ\n\n### シンタクス\n\n```\nVar       := p | q | r | s | t\n\nLfn0      := ⊤ | ⊥\nLfn0Apply := \u003cLfn0\u003e()\n\nLfn1      := ¬\nLfn1Apply := \u003cLfn1\u003e(\u003cForm\u003e)\n\nLfn2      := ∧ | ∨ | → | ↔\nLfn2Apply := \u003cLfn2\u003e(\u003cForm\u003e,\u003cForm\u003e)\n\nForm      := \u003cVar\u003e | \u003cLfn0Apply\u003e | \u003cLfn1Apply\u003e | \u003cLfn2Apply\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnO2WMaN%2Frust-proplogic-toylang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSnO2WMaN%2Frust-proplogic-toylang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnO2WMaN%2Frust-proplogic-toylang/lists"}