Skip to content

Commit

Permalink
README: add a section about arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunix00 committed Jul 30, 2024
1 parent c94fcf6 commit d453d94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ make -j`nproc`
define x : int = 42;
define y = 42;
```
### Arrays
```c
define arr : int[] = [1, 2, 3, 4, 5];
define element = arr[0];
```
### Function declaration
```c
define add : function(x : int, y : int) -> int = {
Expand Down

0 comments on commit d453d94

Please sign in to comment.