PriyoScriptPriyoScript

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 .priyo file with monalisa
  • Read input and print output
  • Use variables and functions

Hello World

Create hello.priyo:

monalisa {
  priyoTell("Hello from PriyoScript")
}

Run:

monalisa hello.priyo

Expected output:

Hello from PriyoScript

Input 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:

25

Execution flow

  1. The CLI reads your file and starts execution inside monalisa { ... }.
  2. The interpreter runs statements in top-to-bottom order.
  3. Declarations (priyoKeep, priyoChange, priyoPromise) create named values in memory.
  4. Function declarations (lisaaTask) are registered first, then called when referenced.
  5. During a function call, arguments are evaluated, a new function scope is created, then priyoGiveBack returns control.
  6. 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.

Last updated on

On this page