Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Guide
This is a temporary guide on how the language works

## Variable Initialization

### Global Variables

```
x = 10
x = x + 5
```

### Local Variables

```
nat y = x + 20
nat z = 20
```

## Functions

```
call funcName(args)
[body]
done
```

```
funcName(val)
```

## If Statements

### Normal Statements

```
if (statement)
[body]
done
```

### Else and Else If Statements

```
if (statement1)
[body]
elif (statement2)
[body]
else
[body]
done
```

## Loops

### While Loops

```
when (statement)
[body]
done
```


## Switch Statements

Loading