Skip to content

winters-code/nix-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-lua

Anyone can use this software how they please as long as this README file stays in the same place and isn't edited.

About

Nix is a coding language that aims to be simple to learn yet powerful for advanced users.

Examples

"Hello, world!" program

fun main() {
    print("Hello, world!")
}

Variables

fun main() {
    let x = 10
    let y = 20
    print(x)
    print(y)
    print(x + y)
}

Functions

fun hello() {
    print("Hello, world!")
}

fun main() {
    hello()
}

Variable passing

fun main() {
    let ref x = 10 // x will be passed by reference
    let val y = 10 // y will be passed by value
}

Credits

About

A simple coding language, very much in progress

Topics

Resources

Stars

Watchers

Forks

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy