Skip to content

Commit

Permalink
📝 Added idea to documentation
Browse files Browse the repository at this point in the history
semver: chore
  • Loading branch information
Lucas de Jong committed Oct 22, 2024
1 parent dacd580 commit cdbe80d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"discord.enabled": true
}
26 changes: 26 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,29 @@ code purrer for cat:
12
}
```

```rust
comp Name:
name ~ string;

comp Age: age ~ number;

enum tail_length:
short,
medium,
long;

type Cat
tail_length ~ tail_length,
+ Name,
+ Age;

spec Purrer:
pur ~ fn(self) -> number;

code Purrer for Cat:
fn pur(self) -> number {
print`($"{self.name} ({self.age}) is purring");
};

```

0 comments on commit cdbe80d

Please sign in to comment.