https://github.com/sleepy-monax/udfore
🔣 A safe and statically typed programming language
https://github.com/sleepy-monax/udfore
programming-language
Last synced: 10 months ago
JSON representation
🔣 A safe and statically typed programming language
- Host: GitHub
- URL: https://github.com/sleepy-monax/udfore
- Owner: sleepy-monax
- License: mit
- Created: 2019-07-20T13:37:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T08:37:34.000Z (over 4 years ago)
- Last Synced: 2025-04-13T21:12:22.946Z (10 months ago)
- Topics: programming-language
- Language: C
- Homepage:
- Size: 68.4 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README

```
take println from io;
type Vector
{
int x;
int y;
int z;
constructor (float x, float y, float z)
{
.x = x;
.y = y;
.z = z;
}
operator + (Vector vector) -> Vector
{
return Vector(
x + vector.x,
y + vector.y,
z + vector.z,
);
}
cast String
{
return `[{x}, {y}, {z}]`;
}
}
let v1 := Vector(1, 2, 3);
let v2 := Vector(4, 5, 6);
let v3 := v1 + v2;
println(`{v1} + {v2} = {v3}`);
```