Update README.md

This commit is contained in:
Stalin
2025-01-30 14:41:54 +05:30
committed by GitHub
parent 4492ff0009
commit 0620a125db
+20 -11
View File
@@ -18,7 +18,8 @@ To install the Nex programming language, follow the steps below:
#### Download the Installer #### 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 ### Download Nex
@@ -34,7 +35,7 @@ Run Nex:
$ ./nex $ ./nex
Syntax Example ## Syntax Example
Heres a quick example of a basic Nex program: Heres a quick example of a basic Nex program:
@@ -44,12 +45,12 @@ func main() {
print("Hello, World!") print("Hello, World!")
} }
Variables ##Variables
let num = 10 let num = 10
let str = "Hello, Nex!" let str = "Hello, Nex!"
Functions ## Functions
func add(a, b) { func add(a, b) {
return a + b return a + b
@@ -58,26 +59,34 @@ func add(a, b) {
let sum = add(5, 3) let sum = add(5, 3)
print(sum) // Output: 8 print(sum) // Output: 8
Conditionals ## Conditionals
if num > 5 { num > 5 {
print("Number is greater than 5") print("Number is greater than 5")
} else { } else {
print("Number is less than or equal to 5") print("Number is less than or equal to 5")
} }
Loops ## Loops
for i in 0..5 { for i in 0..5 {
print(i) print(i)
} }
Documentation ## Documentation
You can find the full documentation for Nex on our website: https://nex-lang.org/docs. You can find the full documentation for Nex on our website: [website](https://stalin-143.github.io/Nex/)
Contributing
## 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. 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. Nex is released under the MIT License. See the LICENSE file for more details.
## 💰 You can help me by Donating
[![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/stalin143) [![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/stalinS143)