From 05a154c74540e5d659d9cd52ecaf15dd06d523d0 Mon Sep 17 00:00:00 2001 From: "Matsuura Tomoya(Windows)" Date: Sun, 3 Aug 2025 15:50:28 +0900 Subject: [PATCH] [obsidian] vault backup: 2025-08-03 15:50:28[ --- content/mimium.md | 1 + content/mimiumのモジュールシステム.md | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 content/mimiumのモジュールシステム.md diff --git a/content/mimium.md b/content/mimium.md index 15b817e0..0fb50935 100644 --- a/content/mimium.md +++ b/content/mimium.md @@ -30,6 +30,7 @@ https://github.com/mimium-org/mimium-rs - [[mimiumのMIRコンパイル過程を真面目に考える]] - [[lambda-mmm(実用版)]] - [[mimiumグローバル環境評価について]] +- [[mimiumのモジュールシステム]] ## マクロ diff --git a/content/mimiumのモジュールシステム.md b/content/mimiumのモジュールシステム.md new file mode 100644 index 00000000..85f2fce0 --- /dev/null +++ b/content/mimiumのモジュールシステム.md @@ -0,0 +1,23 @@ +#mimium + +モジュールシステムの意味論と実装について考える + +### 必要要件 + +分割コンパイルできる、かつ、意味論的にもある程度一貫性がある + +```rust +//関数のvisibilityセッティングはRustとおなじで +pub fn (){ + +} +pub const hoge = 100 + + +``` + +``` +Program = FunctionDefinition + |GlobalDeclaration + |ModuleDeclaration +``` \ No newline at end of file