mirror of
https://github.com/0x5t4l1n/Nex.git
synced 2026-05-26 11:35:53 +00:00
Update README.md
This commit is contained in:
@@ -18,7 +18,8 @@ To install the Nex programming language, follow the steps below:
|
||||
|
||||
#### Download the Installer
|
||||
|
||||
Visit the official website to download the latest version of the Nex programming language: [webiste]("https://stalin-143.github.io/Nex/")
|
||||
Visit the official website to download the latest version of the Nex programming language: [website](https://stalin-143.github.io/Nex/)
|
||||
|
||||
|
||||
### Download Nex
|
||||
|
||||
@@ -34,50 +35,58 @@ Run Nex:
|
||||
|
||||
$ ./nex
|
||||
|
||||
Syntax Example
|
||||
## Syntax Example
|
||||
|
||||
Here’s a quick example of a basic Nex program:
|
||||
|
||||
// Hello World Program in Nex
|
||||
// Hello World Program in Nex
|
||||
|
||||
func main() {
|
||||
print("Hello, World!")
|
||||
}
|
||||
func main() {
|
||||
print("Hello, World!")
|
||||
}
|
||||
|
||||
Variables
|
||||
##Variables
|
||||
|
||||
let num = 10
|
||||
let str = "Hello, Nex!"
|
||||
let num = 10
|
||||
let str = "Hello, Nex!"
|
||||
|
||||
Functions
|
||||
## Functions
|
||||
|
||||
func add(a, b) {
|
||||
func add(a, b) {
|
||||
return a + b
|
||||
}
|
||||
}
|
||||
|
||||
let sum = add(5, 3)
|
||||
print(sum) // Output: 8
|
||||
let sum = add(5, 3)
|
||||
print(sum) // Output: 8
|
||||
|
||||
Conditionals
|
||||
## Conditionals
|
||||
|
||||
if num > 5 {
|
||||
print("Number is greater than 5")
|
||||
} else {
|
||||
print("Number is less than or equal to 5")
|
||||
}
|
||||
num > 5 {
|
||||
print("Number is greater than 5")
|
||||
} else {
|
||||
print("Number is less than or equal to 5")
|
||||
}
|
||||
|
||||
Loops
|
||||
## Loops
|
||||
|
||||
for i in 0..5 {
|
||||
print(i)
|
||||
}
|
||||
for i in 0..5 {
|
||||
print(i)
|
||||
}
|
||||
|
||||
Documentation
|
||||
## Documentation
|
||||
|
||||
You can find the full documentation for Nex on our website: https://nex-lang.org/docs.
|
||||
Contributing
|
||||
You can find the full documentation for Nex on our website: [website](https://stalin-143.github.io/Nex/)
|
||||
|
||||
## Contributing
|
||||
|
||||
We welcome contributions! If you'd like to contribute to the Nex programming language, please fork the repository and create a pull request. Ensure that you follow the code style guidelines and include tests for any new features or fixes.
|
||||
License
|
||||
|
||||
## License
|
||||
|
||||
Nex is released under the MIT License. See the LICENSE file for more details.
|
||||
|
||||
|
||||
|
||||
## 💰 You can help me by Donating
|
||||
|
||||
[](https://buymeacoffee.com/stalin143) [](https://paypal.me/stalinS143)
|
||||
|
||||
Reference in New Issue
Block a user