-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Introduction | ||
|
||
Welcome to the documentation for GLaDOS, a custom language created in Haskell that allows users to write programs in the kope syntax. | ||
|
||
GLaDOS simplifies the process of creating and running programs by seamlessly translating kope-syntax-coded programs into WebAssembly, an industry-standard binary instruction format. This allows for cross-platform compatibility and efficient execution of code. | ||
Welcome to the documentation for Kope, our language inspired by C and javascript and compiled in WebAssembly by our GlaDOS Project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# While Statements | ||
|
||
Usage of while statements is pretty straight forward and easy to use. | ||
|
||
``` | ||
while (condition) { | ||
... | ||
}; | ||
``` | ||
|
||
If you'd like to see a real example | ||
|
||
#### **`main.kop`** | ||
``` | ||
fn main(argc, argv) | ||
{ | ||
var i = 0 | ||
print("Here are all digit: ") | ||
While (i < 10) { | ||
print(i); | ||
print(" "); | ||
}; | ||
``` | ||
|
||
To learn how to compile the file, [check this out!](./compile_and_run.md) | ||
|
||
```sh | ||
> ./GLaDOS -r executable | ||
Here are all digit: 1 2 3 4 5 6 7 8 9 | ||
``` |