mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 09:06:41 +02:00
Updated Basics (markdown)
+5
-5
@@ -1,6 +1,6 @@
|
||||
# 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!
|
||||
```
|
||||
@@ -10,7 +10,7 @@ cwl Hello World!
|
||||
# Printing 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
|
||||
|
||||
### Example
|
||||
@@ -22,7 +22,7 @@ cw World
|
||||
### Output:
|
||||
`HelloWorld`
|
||||
|
||||
## `cwl` (Console Write Line)\
|
||||
## `cwl` (Console Write Line)
|
||||
Prints everything to the console which comes after it and appends `\n` to it
|
||||
|
||||
### Example
|
||||
@@ -41,7 +41,7 @@ World
|
||||
# Reading from the console
|
||||
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
|
||||
|
||||
### Example
|
||||
@@ -55,7 +55,7 @@ cwl %cr
|
||||
### Output
|
||||
`A`
|
||||
|
||||
## `cwl` (Console Write Line)\
|
||||
## `cwl` (Console Write Line)
|
||||
Replaces the statement through a whole line read from the console
|
||||
|
||||
### Example
|
||||
|
||||
Reference in New Issue
Block a user