A delightfully simple scripting language.
Warning
This repository is still a work-in-progress. It is nowhere near production-ready.
- Static typing
- No magic
- LSP support
- Built-in formatter
- Built-in REPL
- Full support for VSCode
- Full support for Neovim
- Extensive Documentation with an online playground
printf("Hello, World!\n")
Run it:
dlitescript hello.dlvar name string = "DLiteScript"
var version number = 0.1
var isSupported bool = true
printf("Welcome to %s v%g\n", name, version)
printf("Supported: %t\n", isActive)
var test number = 85
if test > 80 {
printf("The number is over 80\n")
} else {
printf("The number is 80 or lower\n")
}
for var i from 0 to 5 {
printf("Count: %g\n", i)
}
for var i to 3 {
if i == 2 {
continue
}
printf("Iteration %g\n", i)
}
func greet(name string) string {
printf("Hello, %s!\n", name)
}
greet("Developer")
Check out the examples/ directory for examples covering:
- Basic syntax and operations
- Variables and type declarations
- Control flow and loops
- Functions with multiple return values
- And much more!
git clone https://github.com/Dobefu/DLiteScript.git
cd DLiteScript
go mod download
go build -buildvcs# Run tests
go test ./...
# Build binary
go build -buildvcsContributions are welcome! Please see CONTRIBUTING.md for details.
MIT License - see LICENSE for details.