Quick Start
Create, run, and understand your first PriyoScript programs in minutes.
Goal
This page is your first hands-on path from zero to running PriyoScript code. If PriyoScript is already installed, you can finish this page in a few minutes. Each step builds one concept at a time so you can see exactly what changed.
By the end, you will be able to:
- Run a
.priyofile withmonalisa - Read input and print output
- Use variables and functions
Hello World
Create hello.priyo:
monalisa {
priyoTell("Hello from PriyoScript")
}Run:
monalisa hello.priyoExpected output:
Hello from PriyoScriptInput and output
monalisa {
priyoKeep name = priyoListenSentence("Your name: ")
priyoKeep age = priyoListenNumber("Your age: ")
priyoTell.Success("Hi " + name)
priyoTell.Info("Age: " + age)
}Variables and expressions
monalisa {
priyoKeep base = 12
priyoChange tax = 3
priyoPromise total = base + tax
priyoTell(total)
}First function
monalisa {
lisaaTask areaSquare(side) {
priyoGiveBack side * side
}
priyoTell(areaSquare(5))
}Expected output:
25Execution flow
- The CLI reads your file and starts execution inside
monalisa { ... }. - The interpreter runs statements in top-to-bottom order.
- Declarations (
priyoKeep,priyoChange,priyoPromise) create named values in memory. - Function declarations (
lisaaTask) are registered first, then called when referenced. - During a function call, arguments are evaluated, a new function scope is created, then
priyoGiveBackreturns control. - Output methods like
priyoTell(...)write final values to terminal.
Quick comparison
JavaScript:
console.log('Hello from JavaScript')Python:
print('Hello from Python')PriyoScript:
monalisa {
priyoTell("Hello from PriyoScript")
}Next Step
Continue with Syntax Basics to learn full language grammar and assignment rules.
Related docs
Last updated on