Skip to content

Commit

Permalink
Remove all not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Jan 14, 2024
1 parent 5b47c0e commit 2a5515f
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ alias A = Int;

```hs
@Int a = 1;
@String b = "hello";
@StringView b = "hello";
```

- **Variables Assignment**
Expand Down Expand Up @@ -114,18 +114,11 @@ while (i < 10)
};
```

- **Imports**

```c
// Circular imports are not allowed
import "path/to/file.lvt"
```

- **Entrypoint**

```rust
// If you don't have this function, the program will not be run
fn start() -> Int
export fn start() -> Int
{
<- 0;
};
Expand All @@ -140,35 +133,8 @@ a * b
a / b
a == b
a != b
```

- **Structs**

```c
struct Point
{
x: Int,
y: Int,
};
```

- **Structs Initialization**
```
@Point p = {1, 2};
```

- **Structs Access**
```
p:x
```

- **Nested Structs**
```
struct Rect
{
Point size;
Point pos;
};
@Rect r = {{1, 2}, {3, 4}};
r:size:x
a < b
a <= b
a > b
a >= b
```

0 comments on commit 2a5515f

Please sign in to comment.