Skip to content

Commit

Permalink
Update doc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlockcxk authored Jun 30, 2021
1 parent 6970564 commit 824237e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Never gonna give you up, never gonna let you down~
```

## Defining Variable
You can define int, float, string, list/array, set, and tuple.
```
give_u_up a = 10~
give_u_up b = "It is a string"
Expand All @@ -41,6 +42,7 @@ give_u_up c = ["This", "is", "an", "array"]
```

## If Statement
Indentation in RickRoll-lang is optional.
```
take_me_to_ur_heart~ # You can add "~" at the end of the statement (it is totally optional)
give_u_up a = 10
Expand Down Expand Up @@ -68,7 +70,7 @@ And you will get this on your terminal
## Loop
```
take_me_to_ur_heart
together_forever_we_two # Endless loop
together_forever_and_never_to_part # Endless loop
say_good_bye
Expand Down

0 comments on commit 824237e

Please sign in to comment.