Skip to content

Commit

Permalink
update README: add functions section
Browse files Browse the repository at this point in the history
  • Loading branch information
manosriram committed Jul 13, 2024
1 parent 3d07e9d commit 3859686
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ a <-> b;
/* a = -123, b = 1 */
```

> functions
```
fn addstatic[] <<
return 100+500;
>>
fn addwithnoreturn[] <<
a <- 100;
>>
a <- 500;
staticsum <- addstatic();
addwithnoreturn(); // a = 100
```

### Usage
##### Using Makefile
`make run`
Expand Down

0 comments on commit 3859686

Please sign in to comment.