[obsidian] vault backup: 2025-08-03 16:50:45[
All checks were successful
Build / build (push) Successful in 7m56s

This commit is contained in:
2025-08-03 16:50:45 +09:00
parent 05a154c745
commit bda19719a9

View File

@@ -6,18 +6,32 @@
分割コンパイルできる、かつ、意味論的にもある程度一貫性がある
#### モジュール内での宣言一覧
```rust
//関数のvisibilityセッティングはRustとおなじ
//関数のvisibilityセッティングはRustとおなじ感じ
pub fn (){
}
pub const hoge = 100
pub const Foo = 100
type Bar = Constructor(()->float) //新しい型宣言
type alias Hoge = ()->float //エイリアス宣言
```
#### モジュールの宣言
```rust
mod(macro) modname{
}
```
```
Program = FunctionDefinition
|GlobalDeclaration
|ModuleDeclaration
|use ModuleName
ModuleDeclaration = Visibility(stage) { Program }
```