mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-09 23:43:16 +02:00
Updated Basics (markdown)
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
# Hello World
|
# Hello World
|
||||||
|
|
||||||
Creating a hello world program in YesNt is very sample:
|
Creating a hello world program in YesNt is very simple:
|
||||||
```
|
```
|
||||||
cwl Hello World!
|
cwl Hello World!
|
||||||
```
|
```
|
||||||
@@ -10,7 +10,7 @@ cwl Hello World!
|
|||||||
# Printing to the console
|
# Printing to the console
|
||||||
|
|
||||||
There are two statements which can print text to the console
|
There are two statements which can print text to the console
|
||||||
## `cw` (Console Write)\
|
## `cw` (Console Write)
|
||||||
Prints everything to the console which comes after it
|
Prints everything to the console which comes after it
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -22,7 +22,7 @@ cw World
|
|||||||
### Output:
|
### Output:
|
||||||
`HelloWorld`
|
`HelloWorld`
|
||||||
|
|
||||||
## `cwl` (Console Write Line)\
|
## `cwl` (Console Write Line)
|
||||||
Prints everything to the console which comes after it and appends `\n` to it
|
Prints everything to the console which comes after it and appends `\n` to it
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -41,7 +41,7 @@ World
|
|||||||
# Reading from the console
|
# Reading from the console
|
||||||
You can read either a whole line or a single char from the console using the following statements:
|
You can read either a whole line or a single char from the console using the following statements:
|
||||||
|
|
||||||
## `%cr` (Console Read)\
|
## `%cr` (Console Read)
|
||||||
Replaces the statement through a single character read from the console
|
Replaces the statement through a single character read from the console
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -55,7 +55,7 @@ cwl %cr
|
|||||||
### Output
|
### Output
|
||||||
`A`
|
`A`
|
||||||
|
|
||||||
## `cwl` (Console Write Line)\
|
## `cwl` (Console Write Line)
|
||||||
Replaces the statement through a whole line read from the console
|
Replaces the statement through a whole line read from the console
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|||||||
Reference in New Issue
Block a user